Struct ink_storage::Memory [−][src]
pub struct Memory<T> { /* fields omitted */ }
Expand description
An instance that is solely stored within the contract’s memory.
This will never be stored to or loaded from contract storage.
Note
Use instances of this type in order to have some shared state between
contract messages and functions.
Its usage is comparable to the Solidity’s memory
instances.
Pulling an instance of this type from the contract storage will always
yield a default constructed value.
Implementations
Trait Implementations
Mutably borrows from an owned value. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Pulls an instance of Self
from the contract storage. Read more
Pushes an instance of Self
to the contract storage. Read more
Clears an instance of Self
from the contract storage. Read more
Indicates whether a type requires deep clean-up of its state meaning that
a clean-up routine has to decode an entity into an instance in order to
eventually recurse upon its tear-down.
This is not required for the majority of primitive data types such as i32
,
however types such as storage::Box
that might want to forward the clean-up
procedure to their inner T
require a deep clean-up. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Memory<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Memory<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<C, T> CoordTranslate for T where
C: CoordTranslate,
T: Deref<Target = C>,
impl<C, T> CoordTranslate for T where
C: CoordTranslate,
T: Deref<Target = C>,
type Output = T
type Output = T
Should always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Convert from a value of T
into an equivalent instance of Self
. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V