Trait oasis_core_runtime::common::key_format::KeyFormatAtom
source · pub trait KeyFormatAtom {
// Required methods
fn size() -> usize;
fn encode_atom(self) -> Vec<u8> ⓘ;
fn decode_atom(data: &[u8]) -> Self
where Self: Sized;
}
Expand description
Part of the KeyFormat to be used with key-value backends for constructing keys.
Required Methods§
fn size() -> usize
fn encode_atom(self) -> Vec<u8> ⓘ
fn decode_atom(data: &[u8]) -> Selfwhere
Self: Sized,
Object Safety§
This trait is not object safe.