pub enum NodeContent<'a> {
Source(&'a str),
Expression(Expression<'a>),
Assignment(&'a str, TokenType, Expression<'a>),
If(Expression<'a>),
For(&'a str, Expression<'a>),
Elif(Expression<'a>),
Else,
End,
}
Expand description
The data that the Node holds. Different Nodes hold different types of data.
Variants§
Source(&'a str)
Expression(Expression<'a>)
Assignment(&'a str, TokenType, Expression<'a>)
If(Expression<'a>)
For(&'a str, Expression<'a>)
Elif(Expression<'a>)
Else
End
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeContent<'a>
impl<'a> RefUnwindSafe for NodeContent<'a>
impl<'a> Send for NodeContent<'a>
impl<'a> Sync for NodeContent<'a>
impl<'a> Unpin for NodeContent<'a>
impl<'a> UnwindSafe for NodeContent<'a>
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