pub enum TreeNode<'i, I, P, TK>{
TermNode {
token: Token<'i, I, TK>,
layout: Option<&'i I>,
},
NonTermNode {
prod: P,
location: Location,
children: Vec<TreeNode<'i, I, P, TK>>,
layout: Option<&'i I>,
},
}
Expand description
A node in the generic tree produced by TreeBuilder
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'i, I: ?Sized, P, TK> RefUnwindSafe for TreeNode<'i, I, P, TK>
impl<'i, I: ?Sized, P, TK> Send for TreeNode<'i, I, P, TK>
impl<'i, I: ?Sized, P, TK> Sync for TreeNode<'i, I, P, TK>
impl<'i, I: ?Sized, P, TK> Unpin for TreeNode<'i, I, P, TK>
impl<'i, I: ?Sized, P, TK> UnwindSafe for TreeNode<'i, I, P, TK>
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