#[repr(C)]pub struct InternalArgs<'internal_args> {Show 13 fields
pub self_ptr: NonNull<<Playground as IoType>::PointerType>,
pub self_size: *mut u32,
pub self_capacity: NonNull<u32>,
pub env_ptr: NonNull<Env<'internal_args>>,
pub last_action_ptr: NonNull<<<Playground as Contract>::Tmp as IoType>::PointerType>,
pub last_action_size: *mut u32,
pub last_action_capacity: NonNull<u32>,
pub to_address_ptr: NonNull<Address>,
pub to_ptr: NonNull<<<Playground as Contract>::Slot as IoType>::PointerType>,
pub to_size: *mut u32,
pub to_capacity: NonNull<u32>,
pub value_ptr: NonNull<<Balance as IoType>::PointerType>,
pub value_size: NonNull<u32>,
/* private fields */
}
Expand description
Data structure containing expected input to playground_mint()
, it is used internally by the contract, there should be no need to construct it explicitly except maybe in contract’s own tests
Fields§
§self_ptr: NonNull<<Playground as IoType>::PointerType>
§self_size: *mut u32
Size of the contents self_ptr
points to
self_capacity: NonNull<u32>
Capacity of the allocated memory following self_ptr
points to
env_ptr: NonNull<Env<'internal_args>>
§last_action_ptr: NonNull<<<Playground as Contract>::Tmp as IoType>::PointerType>
§last_action_size: *mut u32
Size of the contents last_action_ptr
points to
last_action_capacity: NonNull<u32>
Capacity of the allocated memory last_action_ptr
points to
to_address_ptr: NonNull<Address>
§to_ptr: NonNull<<<Playground as Contract>::Slot as IoType>::PointerType>
§to_size: *mut u32
Size of the contents to_ptr
points to
to_capacity: NonNull<u32>
Capacity of the allocated memory to_ptr
points to
value_ptr: NonNull<<Balance as IoType>::PointerType>
§value_size: NonNull<u32>
Size of the contents value_ptr
points to
Trait Implementations§
Auto Trait Implementations§
impl<'internal_args> Freeze for InternalArgs<'internal_args>
impl<'internal_args> !RefUnwindSafe for InternalArgs<'internal_args>
impl<'internal_args> !Send for InternalArgs<'internal_args>
impl<'internal_args> !Sync for InternalArgs<'internal_args>
impl<'internal_args> Unpin for InternalArgs<'internal_args>
impl<'internal_args> !UnwindSafe for InternalArgs<'internal_args>
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