pub struct Literal {
pub byte: u8,
pub span: Range<usize>,
pub escaped: bool,
}
Expand description
Literal byte
Fields§
§byte: u8
Byte value.
span: Range<usize>
Span of the literal
escaped: bool
Was the byte escaped.
This is for example true for ‘[’ or ‘.’, but not for ‘\n’ or ‘\xAB’.
Trait Implementations§
Source§impl PartialOrd for Literal
impl PartialOrd for Literal
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
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