pub enum ParseTreeNode {
Token(TokenIndex),
ParseTree(ParseTree),
}Variants§
Token(TokenIndex)
ParseTree(ParseTree)
Implementations§
Source§impl ParseTreeNode
impl ParseTreeNode
pub fn try_as_token_index(&self) -> Option<TokenIndex>
pub fn try_as_parse_tree(&self) -> Option<&ParseTree>
Trait Implementations§
Source§impl Clone for ParseTreeNode
impl Clone for ParseTreeNode
Source§fn clone(&self) -> ParseTreeNode
fn clone(&self) -> ParseTreeNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParseTreeNode
impl RefUnwindSafe for ParseTreeNode
impl Send for ParseTreeNode
impl Sync for ParseTreeNode
impl Unpin for ParseTreeNode
impl UnwindSafe for ParseTreeNode
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