brotli::enc::interface

Trait Nop

Source
pub trait Nop<T> {
    // Required method
    fn nop() -> T;
}
Expand description

Commands that can instantiate as a no-op should implement this.

Required Methods§

Source

fn nop() -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Nop<CopyCommand> for CopyCommand

Source§

impl Nop<DictCommand> for DictCommand

Source§

impl<SliceType: SliceWrapper<u8> + Default> Nop<LiteralCommand<SliceType>> for LiteralCommand<SliceType>

Source§

impl<SliceType: SliceWrapper<u8>> Nop<Command<SliceType>> for Command<SliceType>