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,
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.