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
when the #[key(bitset)]
attribute
is present.
Required Associated Types§
Required Methods§
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.