pub enum Sequence<'data> {
Triple {
literals: &'data [u8],
offset: usize,
match_len: usize,
},
Literals {
literals: &'data [u8],
},
}
Expand description
Sequences that a Matcher
can produce
Variants§
Triple
Is encoded as a sequence for the decoder sequence execution.
First the literals will be copied to the decoded data,
then match_len
bytes are copied from offset
bytes back in the buffer
Literals
This is returned as the last sequence in a block
These literals will just be copied at the end of the sequence execution by the decoder
Trait Implementations§
impl<'data> Eq for Sequence<'data>
impl<'data> StructuralPartialEq for Sequence<'data>
Auto Trait Implementations§
impl<'data> Freeze for Sequence<'data>
impl<'data> RefUnwindSafe for Sequence<'data>
impl<'data> Send for Sequence<'data>
impl<'data> Sync for Sequence<'data>
impl<'data> Unpin for Sequence<'data>
impl<'data> UnwindSafe for Sequence<'data>
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