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> PartialEq<AnyHeader<PrimaryKey>> for AnyHeader<PrimaryKey>where
PrimaryKey: PartialEq<PrimaryKey>,
impl<PrimaryKey> PartialEq<AnyHeader<PrimaryKey>> for AnyHeader<PrimaryKey>where PrimaryKey: PartialEq<PrimaryKey>,
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.