pub trait RadbKey {
type View: for<'a> WithLifetime<'a>;
// Required methods
fn from_bytes(data: &[u8]) -> <Self::View as WithLifetime<'_>>::Out;
fn as_bytes(&self) -> &[u8] ⓘ;
fn compare(data1: &[u8], data2: &[u8]) -> Ordering;
}
Required Associated Types§
type View: for<'a> WithLifetime<'a>
Required Methods§
sourcefn from_bytes(data: &[u8]) -> <Self::View as WithLifetime<'_>>::Out
fn from_bytes(data: &[u8]) -> <Self::View as WithLifetime<'_>>::Out
Deserializes data Implementations may return a view over data, or an owned type
Object Safety§
This trait is not object safe.