#[non_exhaustive]pub enum ReftableField {
Show 13 variants
Varint,
BlockHeader,
IndexKey,
RefName,
ObjectId,
ObjectIdPair,
SymrefTarget,
LogKey,
LogName,
LogEmail,
LogTimezone,
LogMessage,
Footer,
}Expand description
A field of a reftable file, named by ReftableError variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Varint
A variable-length integer.
BlockHeader
The 4-byte block header (type and length).
IndexKey
The key of an index record.
RefName
A ref name (in a ref record or a log key).
ObjectId
The object id of a one-value ref record.
ObjectIdPair
The two object ids of a peeled ref record or a log record.
SymrefTarget
The target of a symbolic ref record.
LogKey
The key of a log record.
LogName
The committer name of a log record.
LogEmail
The committer email of a log record.
LogTimezone
The timezone offset of a log record.
LogMessage
The message of a log record.
The file footer.
Trait Implementations§
Source§impl Clone for ReftableField
impl Clone for ReftableField
impl Copy for ReftableField
Source§impl Debug for ReftableField
impl Debug for ReftableField
Source§impl Display for ReftableField
impl Display for ReftableField
impl Eq for ReftableField
Source§impl PartialEq for ReftableField
impl PartialEq for ReftableField
impl StructuralPartialEq for ReftableField
Auto Trait Implementations§
impl Freeze for ReftableField
impl RefUnwindSafe for ReftableField
impl Send for ReftableField
impl Sync for ReftableField
impl Unpin for ReftableField
impl UnsafeUnpin for ReftableField
impl UnwindSafe for ReftableField
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.