pub enum Command {
Escape,
Literal(u8),
Repeat(u16),
}Expand description
A packbits command, also called the flag-counter byte, specifying how the next few bytes in a stream will be treated
Variants§
Escape
Escape code, next byte will be emitted literally
Literal(u8)
Copy the next self.0 bytes verbatim to output
Repeat(u16)
Repeat the next byte self.0 times
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more