[][src]Enum git_odb::pack::data::iter::CompressedBytesMode

pub enum CompressedBytesMode {
    Ignore,
    CRC32,
    Keep,
    KeepAndCRC32,
}

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

impl CompressedBytesMode[src]

pub fn crc32(&self) -> bool[src]

Returns true if a crc32 should be computed

pub fn keep(&self) -> bool[src]

Returns true if compressed bytes should be kept

Trait Implementations

impl Clone for CompressedBytesMode[src]

impl Copy for CompressedBytesMode[src]

impl Debug for CompressedBytesMode[src]

impl<'de> Deserialize<'de> for CompressedBytesMode[src]

impl Eq for CompressedBytesMode[src]

impl Hash for CompressedBytesMode[src]

impl Ord for CompressedBytesMode[src]

impl PartialEq<CompressedBytesMode> for CompressedBytesMode[src]

impl PartialOrd<CompressedBytesMode> for CompressedBytesMode[src]

impl Serialize for CompressedBytesMode[src]

impl StructuralEq for CompressedBytesMode[src]

impl StructuralPartialEq for CompressedBytesMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,