pub struct Worktop(pub Own);Tuple Fields§
§0: OwnImplementations§
Source§impl Worktop
impl Worktop
pub fn drop<Y: SystemApi<E>, E: SystemApiError>( self, api: &mut Y, ) -> Result<(), E>
pub fn put<Y: SystemApi<E>, E: SystemApiError>( &self, bucket: Bucket, api: &mut Y, ) -> Result<(), E>
pub fn take<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, amount: Decimal, api: &mut Y, ) -> Result<Bucket, E>
pub fn take_non_fungibles<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, ids: IndexSet<NonFungibleLocalId>, api: &mut Y, ) -> Result<Bucket, E>
pub fn take_all<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, api: &mut Y, ) -> Result<Bucket, E>
pub fn assert_contains<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, api: &mut Y, ) -> Result<(), E>
pub fn assert_contains_amount<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, amount: Decimal, api: &mut Y, ) -> Result<(), E>
pub fn assert_contains_non_fungibles<Y: SystemApi<E>, E: SystemApiError>( &self, resource_address: ResourceAddress, ids: IndexSet<NonFungibleLocalId>, api: &mut Y, ) -> Result<(), E>
pub fn assert_resources_include<Y: SystemApi<E>, E: SystemApiError>( &self, constraints: ManifestResourceConstraints, api: &mut Y, ) -> Result<(), E>
pub fn assert_resources_only<Y: SystemApi<E>, E: SystemApiError>( &self, constraints: ManifestResourceConstraints, api: &mut Y, ) -> Result<(), E>
pub fn drain<Y: SystemApi<E>, E: SystemApiError>( &self, api: &mut Y, ) -> Result<Vec<Bucket>, E>
Trait Implementations§
impl Copy for Worktop
impl Eq for Worktop
impl StructuralPartialEq for Worktop
Auto Trait Implementations§
impl Freeze for Worktop
impl RefUnwindSafe for Worktop
impl Send for Worktop
impl Sync for Worktop
impl Unpin for Worktop
impl UnsafeUnpin for Worktop
impl UnwindSafe for Worktop
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.