pub struct SyntaxTree {
pub branch: &'static str,
pub branch_value: &'static str,
pub branches: &'static [SyntaxTree],
}
Expand description
This represents a syntax tree.
Fields§
§branch: &'static str
The name of this branch of the syntax tree.
branch_value: &'static str
The raw value of this branch of the syntax tree.
branches: &'static [SyntaxTree]
An array of all branches that branch off this one in the syntax tree.
Trait Implementations§
Source§impl Clone for SyntaxTree
impl Clone for SyntaxTree
Source§fn clone(&self) -> SyntaxTree
fn clone(&self) -> SyntaxTree
Returns a copy 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 moreSource§impl Debug for SyntaxTree
impl Debug for SyntaxTree
impl Copy for SyntaxTree
Auto Trait Implementations§
impl Freeze for SyntaxTree
impl RefUnwindSafe for SyntaxTree
impl Send for SyntaxTree
impl Sync for SyntaxTree
impl Unpin for SyntaxTree
impl UnwindSafe for SyntaxTree
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