Trait fixed_map::raw::RawStorage

source ·
pub trait RawStorage: Sized {
    type Value;

    // Required methods
    fn as_raw(&self) -> Self::Value;
    fn from_raw(raw: Self::Value) -> Self;
}
Expand description

Trait implemented for storage which can be easily converted to and from a raw value.

This is implemented for SetStorage which is generated from #[key(bitset)].

Required Associated Types§

source

type Value

The backing raw value.

Required Methods§

source

fn as_raw(&self) -> Self::Value

Get the raw value of the storage.

source

fn from_raw(raw: Self::Value) -> Self

Build storage from raw storage.

Object Safety§

This trait is not object safe.

Implementors§