pub struct CanisterStableMemory {}
Expand description

A standard implementation of StableMemory.

Useful for creating StableWriter and StableReader.

Trait Implementations

Returns the “default value” for a type. Read more

Gets current size of the stable memory (in WASM pages).

Similar to stable_size but with support for 64-bit addressed memory.

Attempts to grow the stable memory by new_pages (added pages). Read more

Similar to stable_grow but with support for 64-bit addressed memory.

Writes data to the stable memory location specified by an offset. Read more

Similar to stable_write but with support for 64-bit addressed memory.

Reads data from the stable memory location specified by an offset.

Similar to stable_read but with support for 64-bit addressed memory.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.