Enum gix_pack::data::input::EntryDataMode
source · pub enum EntryDataMode {
Ignore,
Crc32,
Keep,
KeepAndCrc32,
}
Available on crate feature
streaming-input
only.Expand description
Define what to do with the compressed bytes portion of a pack Entry
Variants§
Ignore
Do nothing with the compressed bytes we read
Crc32
Only create a CRC32 of the entry, otherwise similar to Ignore
Keep
Keep them and pass them along in a newly allocated buffer
KeepAndCrc32
As above, but also compute a CRC32
Implementations§
Trait Implementations§
source§impl Clone for EntryDataMode
impl Clone for EntryDataMode
source§fn clone(&self) -> EntryDataMode
fn clone(&self) -> EntryDataMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EntryDataMode
impl Debug for EntryDataMode
source§impl<'de> Deserialize<'de> for EntryDataMode
impl<'de> Deserialize<'de> for EntryDataMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EntryDataMode
impl Hash for EntryDataMode
source§impl Ord for EntryDataMode
impl Ord for EntryDataMode
source§fn cmp(&self, other: &EntryDataMode) -> Ordering
fn cmp(&self, other: &EntryDataMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EntryDataMode
impl PartialEq for EntryDataMode
source§fn eq(&self, other: &EntryDataMode) -> bool
fn eq(&self, other: &EntryDataMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EntryDataMode
impl PartialOrd for EntryDataMode
source§fn partial_cmp(&self, other: &EntryDataMode) -> Option<Ordering>
fn partial_cmp(&self, other: &EntryDataMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EntryDataMode
impl Serialize for EntryDataMode
impl Copy for EntryDataMode
impl Eq for EntryDataMode
impl StructuralEq for EntryDataMode
impl StructuralPartialEq for EntryDataMode
Auto Trait Implementations§
impl RefUnwindSafe for EntryDataMode
impl Send for EntryDataMode
impl Sync for EntryDataMode
impl Unpin for EntryDataMode
impl UnwindSafe for EntryDataMode
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
§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