Enum vpk0::format::VpkMethod[][src]

pub enum VpkMethod {
    OneSample,
    TwoSample,
}

Valid lookback methods for a VPK compressed file.

OneSample directly encodes the offset value in stream, while TwoSample encodes a modified form of the offset as either one or two values.

The two sample mode encodes an offset by adding eight to the original value, then dividing that value by four. If there is no remainder, the quotient is stored as a single sample. Otherwise, the remainder - 1 is stored followed by the quotient

Variants

OneSample
TwoSample

Trait Implementations

impl Clone for VpkMethod[src]

impl Copy for VpkMethod[src]

impl Debug for VpkMethod[src]

impl Display for VpkMethod[src]

impl Eq for VpkMethod[src]

impl Hash for VpkMethod[src]

impl PartialEq<VpkMethod> for VpkMethod[src]

impl StructuralEq for VpkMethod[src]

impl StructuralPartialEq for VpkMethod[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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.