zink::storage

Trait StorageValue

Source
pub trait StorageValue: Asm {
    // Required method
    fn sload() -> Self;
}
Expand description

Interface for the value of kv based storage

Required Methods§

Source

fn sload() -> Self

Load from storage

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StorageValue for i32

Source§

fn sload() -> Self

Source§

impl StorageValue for u32

Source§

fn sload() -> Self

Implementors§