pub struct Flags(/* private fields */);Expand description
Facts about the gap before a token, which the grammar cannot see and two rules need.
A bitfield rather than three bools so that a token stays twelve bytes.
Implementations§
Source§impl Flags
impl Flags
Sourcepub const NEWLINE: Flags
pub const NEWLINE: Flags
There was a line break between the end of the previous token and the start of this one.
Sourcepub const BLOCK_COMMENT: Flags
pub const BLOCK_COMMENT: Flags
A block comment ended in the gap before this token.
Sourcepub const UNTERMINATED: Flags
pub const UNTERMINATED: Flags
The token ran to the end of the input without its closing delimiter. Only a dollar quoted string reaches the matcher this way; the other unterminated forms are errors.
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnsafeUnpin for Flags
impl UnwindSafe for Flags
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