pub enum Token<'t> {
Text(&'t [u8]),
Control(&'t [u8]),
Sequence(Control, &'t [u8]),
}
Expand description
A text or control sequence token.
Variants§
Text(&'t [u8])
One or more UTF-8 characters excluding C0 and C1 controls.
Control(&'t [u8])
A C0 or C1 control that doesn’t start or end a sequence. This token always has one byte of character data.
Sequence(Control, &'t [u8])
A control sequence with its initial control and subsequent payload.
Implementations§
Trait Implementations§
impl<'t> Eq for Token<'t>
impl<'t> StructuralPartialEq for Token<'t>
Auto Trait Implementations§
impl<'t> Freeze for Token<'t>
impl<'t> RefUnwindSafe for Token<'t>
impl<'t> Send for Token<'t>
impl<'t> Sync for Token<'t>
impl<'t> Unpin for Token<'t>
impl<'t> UnwindSafe for Token<'t>
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