pub struct TreeMeta {
pub name: &'static str,
pub key_scheme: KeyScheme,
pub ty: Typ,
pub group_bits: u32,
pub version: u16,
}Expand description
Metadata about a named tree/map collection.
Fields§
§name: &'static str§key_scheme: KeyScheme§ty: Typ§group_bits: u32§version: u16Implementations§
Source§impl TreeMeta
impl TreeMeta
Sourcepub const fn of<T: CollectionMeta>() -> Self
pub const fn of<T: CollectionMeta>() -> Self
Build TreeMeta from a type implementing CollectionMeta.
All fields are resolved at compile time from associated constants.
ⓘ
const META: TreeMeta = TreeMeta::of::<User>();Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeMeta
impl RefUnwindSafe for TreeMeta
impl Send for TreeMeta
impl Sync for TreeMeta
impl Unpin for TreeMeta
impl UnsafeUnpin for TreeMeta
impl UnwindSafe for TreeMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more