[][src]Enum brotli::enc::interface::Command

pub enum Command<SliceType: SliceWrapper<u8>> {
    Copy(CopyCommand),
    Dict(DictCommand),
    Literal(LiteralCommand<SliceType>),
    BlockSwitchCommand(BlockSwitch),
    BlockSwitchLiteral(LiteralBlockSwitch),
    BlockSwitchDistance(BlockSwitch),
    PredictionMode(PredictionModeContextMap<SliceType>),
}

Variants

Copy(CopyCommand)
Dict(DictCommand)
Literal(LiteralCommand<SliceType>)
BlockSwitchCommand(BlockSwitch)
BlockSwitchLiteral(LiteralBlockSwitch)
BlockSwitchDistance(BlockSwitch)
PredictionMode(PredictionModeContextMap<SliceType>)

Methods

impl<SliceType: SliceWrapper<u8> + Default> Command<SliceType>[src]

pub fn free_array<F>(&mut self, apply_func: &mut F) where
    F: FnMut(SliceType), 
[src]

impl<SliceType: SliceWrapper<u8> + Freezable> Command<SliceType>[src]

pub fn freeze(&self) -> Command<SliceOffset>[src]

Trait Implementations

impl<AllocU8: Allocator<u8>, AllocU16: Allocator<u16>, AllocI32: Allocator<i32>, AllocU32: Allocator<u32>, AllocU64: Allocator<u64>, AllocCommand: Allocator<Command>, AllocFloatX: Allocator<floatX>, AllocV8: Allocator<v8>, AllocS16: Allocator<s16>, AllocPDF: Allocator<PDF>, AllocStaticCommand: Allocator<StaticCommand>, AllocHistogramLiteral: Allocator<HistogramLiteral>, AllocHistogramCommand: Allocator<HistogramCommand>, AllocHistogramDistance: Allocator<HistogramDistance>, AllocHistogramPair: Allocator<HistogramPair>, AllocContextType: Allocator<ContextType>, AllocHuffmanTree: Allocator<HuffmanTree>, AllocZopfliNode: Allocator<ZopfliNode>> Allocator<Command<SliceOffset>> for CombiningAllocator<AllocU8, AllocU16, AllocI32, AllocU32, AllocU64, AllocCommand, AllocFloatX, AllocV8, AllocS16, AllocPDF, AllocStaticCommand, AllocHistogramLiteral, AllocHistogramCommand, AllocHistogramDistance, AllocHistogramPair, AllocContextType, AllocHuffmanTree, AllocZopfliNode>[src]

type AllocatedMemory = AllocStaticCommand::AllocatedMemory

impl<SliceType: SliceWrapper<u8> + Clone> Clone for Command<SliceType>[src]

impl<SliceType: SliceWrapper<u8> + Clone + Copy> Copy for Command<SliceType>[src]

impl<SliceType: Debug + SliceWrapper<u8>> Debug for Command<SliceType>[src]

impl<SliceType: SliceWrapper<u8>> Default for Command<SliceType>[src]

impl<SliceType: SliceWrapper<u8>> Nop<Command<SliceType>> for Command<SliceType>[src]

Auto Trait Implementations

impl<SliceType> RefUnwindSafe for Command<SliceType> where
    SliceType: RefUnwindSafe

impl<SliceType> Send for Command<SliceType> where
    SliceType: Send

impl<SliceType> Sync for Command<SliceType> where
    SliceType: Sync

impl<SliceType> Unpin for Command<SliceType> where
    SliceType: Unpin

impl<SliceType> UnwindSafe for Command<SliceType> where
    SliceType: UnwindSafe

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, 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.