#[repr(C)]pub struct InternalArgs<'internal_args> {
pub owner_address_ptr: NonNull<Address>,
pub owner_ptr: NonNull<<<Playground as Contract>::Slot as IoType>::PointerType>,
pub owner_size: *mut u32,
pub owner_capacity: NonNull<u32>,
pub total_supply_ptr: NonNull<<Balance as IoType>::PointerType>,
pub total_supply_size: NonNull<u32>,
pub result_ptr: NonNull<<MaybeData<Playground> as IoType>::PointerType>,
pub result_size: *mut u32,
pub result_capacity: NonNull<u32>,
/* private fields */
}
Expand description
Data structure containing expected input to playground_new_result()
, it is used internally by the contract, there should be no need to construct it explicitly except maybe in contract’s own tests
Fields§
§owner_address_ptr: NonNull<Address>
§owner_ptr: NonNull<<<Playground as Contract>::Slot as IoType>::PointerType>
§owner_size: *mut u32
Size of the contents owner_ptr
points to
owner_capacity: NonNull<u32>
Capacity of the allocated memory owner_ptr
points to
total_supply_ptr: NonNull<<Balance as IoType>::PointerType>
§total_supply_size: NonNull<u32>
Size of the contents total_supply_ptr
points to
result_ptr: NonNull<<MaybeData<Playground> as IoType>::PointerType>
§result_size: *mut u32
Size of the contents result_ptr
points to
result_capacity: NonNull<u32>
Capacity of the allocated memory result_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