pub struct SyntaxTree<T: CstNode = Document> { /* private fields */ }
Implementations§
source§impl<T: CstNode> SyntaxTree<T>
impl<T: CstNode> SyntaxTree<T>
sourcepub fn recursion_limit(&self) -> LimitTracker
pub fn recursion_limit(&self) -> LimitTracker
Get the syntax tree’s recursion limit.
sourcepub fn token_limit(&self) -> LimitTracker
pub fn token_limit(&self) -> LimitTracker
Get the syntax tree’s token limit.
pub fn green(&self) -> GreenNode
source§impl SyntaxTree<Document>
impl SyntaxTree<Document>
source§impl SyntaxTree<SelectionSet>
impl SyntaxTree<SelectionSet>
sourcepub fn field_set(&self) -> SelectionSet
pub fn field_set(&self) -> SelectionSet
Return the root typed SelectionSet
node. This is used for parsing
selection sets defined by @requires directive.
Trait Implementations§
source§impl<T: Clone + CstNode> Clone for SyntaxTree<T>
impl<T: Clone + CstNode> Clone for SyntaxTree<T>
source§fn clone(&self) -> SyntaxTree<T>
fn clone(&self) -> SyntaxTree<T>
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<T: CstNode> Debug for SyntaxTree<T>
impl<T: CstNode> Debug for SyntaxTree<T>
impl<T: Eq + CstNode> Eq for SyntaxTree<T>
impl<T: CstNode> StructuralPartialEq for SyntaxTree<T>
Auto Trait Implementations§
impl<T> Freeze for SyntaxTree<T>
impl<T> RefUnwindSafe for SyntaxTree<T>
impl<T> Send for SyntaxTree<T>
impl<T> Sync for SyntaxTree<T>
impl<T> Unpin for SyntaxTree<T>
impl<T> UnwindSafe for SyntaxTree<T>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)