pub trait ScryptoBucket {
    type ProofType;

Show 14 methods // Required methods fn new(resource_address: ResourceAddress) -> Self; fn drop_empty(self); fn burn(self); fn create_proof_of_all(&self) -> Self::ProofType; fn resource_address(&self) -> ResourceAddress; fn put(&mut self, other: Self); fn amount(&self) -> Decimal; fn take<A: Into<Decimal>>(&mut self, amount: A) -> Self; fn take_advanced<A: Into<Decimal>>( &mut self, amount: A, withdraw_strategy: WithdrawStrategy ) -> Self; fn is_empty(&self) -> bool; fn as_fungible(&self) -> FungibleBucket; fn as_non_fungible(&self) -> NonFungibleBucket; fn authorize_with_all<F: FnOnce() -> O, O>(&self, f: F) -> O; // Provided method fn resource_manager(&self) -> ResourceManager { ... }
}

Required Associated Types§

Required Methods§

source

fn new(resource_address: ResourceAddress) -> Self

source

fn drop_empty(self)

source

fn burn(self)

source

fn create_proof_of_all(&self) -> Self::ProofType

source

fn resource_address(&self) -> ResourceAddress

source

fn put(&mut self, other: Self)

source

fn amount(&self) -> Decimal

source

fn take<A: Into<Decimal>>(&mut self, amount: A) -> Self

source

fn take_advanced<A: Into<Decimal>>( &mut self, amount: A, withdraw_strategy: WithdrawStrategy ) -> Self

source

fn is_empty(&self) -> bool

source

fn as_fungible(&self) -> FungibleBucket

source

fn as_non_fungible(&self) -> NonFungibleBucket

source

fn authorize_with_all<F: FnOnce() -> O, O>(&self, f: F) -> O

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§