#[non_exhaustive]pub enum RleState {
Init,
Literal {
remaining: u16,
},
Repeat {
byte: u8,
remaining: u16,
},
Eod,
}Expand description
State for a RunLengthDecode filter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Init
Waiting for a length byte.
Literal
Copying remaining literal bytes.
Repeat
Repeating byte for remaining times.
Eod
End of data (saw 128).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RleState
impl RefUnwindSafe for RleState
impl Send for RleState
impl Sync for RleState
impl Unpin for RleState
impl UnsafeUnpin for RleState
impl UnwindSafe for RleState
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