#[repr(C)]pub struct PlaygroundBalance2Args {
pub target_ptr: NonNull<Address>,
pub balance_ptr: NonNull<<MaybeData<Balance> as IoType>::PointerType>,
pub balance_size: *mut u32,
pub balance_capacity: NonNull<u32>,
}
Expand description
Data structure containing expected input for external method invocation, eventually calling playground_balance2()
on the other side by the host.
This can be used with Env
, though there are helper methods on this provided by extension trait that allow not dealing with this struct directly in simpler cases.
Fields§
§target_ptr: NonNull<Address>
§balance_ptr: NonNull<<MaybeData<Balance> as IoType>::PointerType>
§balance_size: *mut u32
Size of the contents balance_ptr
points to
balance_capacity: NonNull<u32>
Capacity of the allocated memory balance_ptr
points to
Implementations§
Trait Implementations§
Source§impl Debug for PlaygroundBalance2Args
impl Debug for PlaygroundBalance2Args
Source§impl ExternalArgs for PlaygroundBalance2Args
impl ExternalArgs for PlaygroundBalance2Args
Auto Trait Implementations§
impl Freeze for PlaygroundBalance2Args
impl RefUnwindSafe for PlaygroundBalance2Args
impl !Send for PlaygroundBalance2Args
impl !Sync for PlaygroundBalance2Args
impl Unpin for PlaygroundBalance2Args
impl UnwindSafe for PlaygroundBalance2Args
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