pub enum AnyHeader<PrimaryKey> {
Serialized(Header),
Collection(CollectionHeader<PrimaryKey>),
}Expand description
A header with either a serialized or deserialized primary key.
Variants§
Serialized(Header)
A serialized header.
Collection(CollectionHeader<PrimaryKey>)
A deserialized header.
Implementations§
Trait Implementations§
impl<PrimaryKey: Eq> Eq for AnyHeader<PrimaryKey>
impl<PrimaryKey> StructuralPartialEq for AnyHeader<PrimaryKey>
Auto Trait Implementations§
impl<PrimaryKey> Freeze for AnyHeader<PrimaryKey>where
PrimaryKey: Freeze,
impl<PrimaryKey> RefUnwindSafe for AnyHeader<PrimaryKey>where
PrimaryKey: RefUnwindSafe,
impl<PrimaryKey> Send for AnyHeader<PrimaryKey>where
PrimaryKey: Send,
impl<PrimaryKey> Sync for AnyHeader<PrimaryKey>where
PrimaryKey: Sync,
impl<PrimaryKey> Unpin for AnyHeader<PrimaryKey>where
PrimaryKey: Unpin,
impl<PrimaryKey> UnwindSafe for AnyHeader<PrimaryKey>where
PrimaryKey: UnwindSafe,
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> 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