pub enum Node {
Final(FinalNode),
NonFinal(NonFinalNode),
}
Expand description
An AST node used during parsing.
Variants§
Final(FinalNode)
NonFinal(NonFinalNode)
Implementations§
Source§impl Node
impl Node
pub fn unwrap_final(self) -> FinalNode
pub fn unwrap_non_final(self) -> NonFinalNode
Trait Implementations§
Source§impl PartialOrd for Node
impl PartialOrd 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 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