pub enum TreeNode<K> {
Branch(Branch<K>),
Leaf(Token<K>),
}Variants§
Branch(Branch<K>)
Branch contains the start and end tokens
as well as a tree stream, so for example parenthesis
might become a branch in certain configurations.
Leaf(Token<K>)
Leaf contains only a token and does not
support branches or even other leafs.
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for TreeNode<K>
impl<K> RefUnwindSafe for TreeNode<K>
impl<K> Send for TreeNode<K>
impl<K> Sync for TreeNode<K>
impl<K> Unpin for TreeNode<K>
impl<K> UnsafeUnpin for TreeNode<K>
impl<K> UnwindSafe for TreeNode<K>
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