pub struct ManagedTypeContainer { /* private fields */ }Implementations§
Source§impl ManagedTypeContainer
impl ManagedTypeContainer
pub fn bf_get_f64(&self, handle: RawHandle) -> f64
pub fn bf_overwrite(&mut self, handle: RawHandle, value: f64)
Source§impl ManagedTypeContainer
impl ManagedTypeContainer
pub fn bi_new_from_big_int(&mut self, value: BigInt) -> RawHandle
pub fn bi_overwrite(&mut self, destination: RawHandle, value: BigInt)
pub fn bi_get(&self, handle: RawHandle) -> BigInt
pub fn bu_get(&self, handle: RawHandle) -> BigUint
pub fn bi_to_i64(&self, handle: RawHandle) -> Option<i64>
pub fn bi_get_unsigned_bytes(&self, handle: RawHandle) -> Vec<u8> ⓘ
pub fn bi_set_unsigned_bytes(&mut self, destination: RawHandle, bytes: &[u8])
pub fn bi_get_signed_bytes(&self, handle: RawHandle) -> Vec<u8> ⓘ
pub fn bi_set_signed_bytes(&mut self, destination: RawHandle, bytes: &[u8])
Source§impl ManagedTypeContainer
impl ManagedTypeContainer
pub fn mb_get_owned(&self, handle: RawHandle) -> Vec<u8> ⓘ
pub fn mb_get(&self, handle: RawHandle) -> &[u8] ⓘ
pub fn mb_len(&self, handle: RawHandle) -> usize
pub fn mb_to_bytes(&self, handle: RawHandle) -> Vec<u8> ⓘ
pub fn mb_to_address(&self, handle: RawHandle) -> VMAddress
pub fn mb_to_function_name(&self, handle: RawHandle) -> TxFunctionName
pub fn mb_to_code_metadata(&self, handle: RawHandle) -> VMCodeMetadata
pub fn mb_get_slice( &self, source_handle: RawHandle, starting_position: usize, slice_len: usize, ) -> Result<Vec<u8>, InvalidSliceError>
pub fn mb_set(&mut self, handle: RawHandle, value: Vec<u8>)
pub fn mb_new(&mut self, value: Vec<u8>) -> RawHandle
pub fn mb_update<R, F: FnOnce(&mut Vec<u8>) -> R>( &mut self, handle: RawHandle, f: F, ) -> R
pub fn mb_set_slice( &mut self, dest_handle: RawHandle, starting_position: usize, source_slice: &[u8], ) -> Result<(), InvalidSliceError>
pub fn mb_append_bytes(&mut self, accumulator_handle: RawHandle, bytes: &[u8])
Sourcepub fn mb_get_vec_of_bytes(
&self,
source_handle: RawHandle,
) -> (Vec<Vec<u8>>, usize)
pub fn mb_get_vec_of_bytes( &self, source_handle: RawHandle, ) -> (Vec<Vec<u8>>, usize)
Retrieves data saved in the format of a ManagedVec
Sourcepub fn mb_set_vec_of_bytes(
&mut self,
destination_handle: RawHandle,
data: Vec<Vec<u8>>,
) -> usize
pub fn mb_set_vec_of_bytes( &mut self, destination_handle: RawHandle, data: Vec<Vec<u8>>, ) -> usize
Creates the underlying structure of a ManagedVec
pub fn mb_get_vec_of_esdt_payments( &self, source_handle: RawHandle, ) -> (Vec<TxTokenTransfer>, usize)
pub fn mb_set_vec_of_esdt_payments( &mut self, dest_handle: RawHandle, transfers: &[TxTokenTransfer], ) -> usize
Source§impl ManagedTypeContainer
impl ManagedTypeContainer
pub fn mm_new(&mut self) -> RawHandle
pub fn mm_values_insert( &mut self, map_handle: RawHandle, key: Vec<u8>, value: Vec<u8>, )
pub fn mm_values_get(&self, map_handle: RawHandle, key: &[u8]) -> Vec<u8> ⓘ
pub fn mm_contains(&self, map_handle: RawHandle, key: &[u8]) -> bool
pub fn mm_values_remove(&mut self, map_handle: RawHandle, key: &[u8]) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Debug for ManagedTypeContainer
impl Debug for ManagedTypeContainer
Auto Trait Implementations§
impl Freeze for ManagedTypeContainer
impl RefUnwindSafe for ManagedTypeContainer
impl Send for ManagedTypeContainer
impl Sync for ManagedTypeContainer
impl Unpin for ManagedTypeContainer
impl UnwindSafe for ManagedTypeContainer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more