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§
source§impl<PrimaryKey> PartialEq for AnyHeader<PrimaryKey>where
PrimaryKey: PartialEq,
impl<PrimaryKey> PartialEq for AnyHeader<PrimaryKey>where
PrimaryKey: PartialEq,
impl<PrimaryKey> Eq for AnyHeader<PrimaryKey>where
PrimaryKey: Eq,
impl<PrimaryKey> StructuralEq for AnyHeader<PrimaryKey>
impl<PrimaryKey> StructuralPartialEq for AnyHeader<PrimaryKey>
Auto Trait Implementations§
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.