pub struct Node {
pub op: Op,
pub flags: u8,
pub a: u32,
pub b: u32,
}Expand description
One node. Twelve bytes.
Fields§
§op: Op§flags: u8Per op. Only Identifier uses it today, for RESERVED.
a: u32§b: u32Implementations§
Source§impl Node
impl Node
Sourcepub const RESERVED: u8
pub const RESERVED: u8
On an Identifier node: the keyword check is dropped, so any word matches.
This is the whole of ReservedIdentifierMatcher. It is worth knowing that upstream applies
it to the rule named ReservedKeyword, so a grammar rule that reads
ColLabel <- ReservedKeyword / ... does not test for a reserved word, it accepts any word
at all. Reading the grammar text alone would get that backwards.
Trait Implementations§
impl Copy for Node
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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