Enum divans::Command [−][src]
pub enum Command<SliceType> where
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> Command<SliceType> where
SliceType: Default + SliceWrapper<u8>,
[src]
impl<SliceType> Command<SliceType> where
SliceType: Default + SliceWrapper<u8>,
pub fn free_array<F>(&mut self, apply_func: &mut F) where
F: FnMut(SliceType),
[src]
pub fn free_array<F>(&mut self, apply_func: &mut F) where
F: FnMut(SliceType),
impl<SliceType> Command<SliceType> where
SliceType: Freezable + SliceWrapper<u8>,
[src]
impl<SliceType> Command<SliceType> where
SliceType: Freezable + SliceWrapper<u8>,
pub fn freeze(&self) -> Command<SliceOffset>
[src]
pub fn freeze(&self) -> Command<SliceOffset>
Trait Implementations
impl<SliceType> Debug for Command<SliceType> where
SliceType: Debug + SliceWrapper<u8>,
[src]
impl<SliceType> Debug for Command<SliceType> where
SliceType: Debug + SliceWrapper<u8>,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<SliceType> Clone for Command<SliceType> where
SliceType: Clone + SliceWrapper<u8>,
[src]
impl<SliceType> Clone for Command<SliceType> where
SliceType: Clone + SliceWrapper<u8>,
fn clone(&self) -> Command<SliceType>
[src]
fn clone(&self) -> Command<SliceType>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<SliceType> Nop<Command<SliceType>> for Command<SliceType> where
SliceType: SliceWrapper<u8>,
[src]
impl<SliceType> Nop<Command<SliceType>> for Command<SliceType> where
SliceType: SliceWrapper<u8>,
impl<SliceType> Copy for Command<SliceType> where
SliceType: Copy + Clone + SliceWrapper<u8>,
[src]
impl<SliceType> Copy for Command<SliceType> where
SliceType: Copy + Clone + SliceWrapper<u8>,
impl<SliceType> Default for Command<SliceType> where
SliceType: SliceWrapper<u8>,
[src]
impl<SliceType> Default for Command<SliceType> where
SliceType: SliceWrapper<u8>,