pub enum TreeNode<'i, I: Input<Output = I> + ?Sized, 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>,
},
}Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'i, I: ?Sized, P, TK> RefUnwindSafe for TreeNode<'i, I, P, TK>where I: RefUnwindSafe, P: RefUnwindSafe, TK: RefUnwindSafe,
impl<'i, I: ?Sized, P, TK> Send for TreeNode<'i, I, P, TK>where I: Sync, P: Send, TK: Send,
impl<'i, I: ?Sized, P, TK> Sync for TreeNode<'i, I, P, TK>where I: Sync, P: Sync, TK: Sync,
impl<'i, I: ?Sized, P, TK> Unpin for TreeNode<'i, I, P, TK>where P: Unpin, TK: Unpin,
impl<'i, I: ?Sized, P, TK> UnwindSafe for TreeNode<'i, I, P, TK>where I: RefUnwindSafe, P: UnwindSafe, TK: UnwindSafe,
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