Struct tree_sitter_graph::ast::Stanza
source · pub struct Stanza {
pub query: Query,
pub statements: Vec<Statement>,
pub full_match_stanza_capture_index: usize,
pub full_match_file_capture_index: usize,
pub range: Range,
}
Expand description
One stanza within a file
Fields§
§query: Query
The tree-sitter query for this stanza
statements: Vec<Statement>
The list of statements in the stanza
full_match_stanza_capture_index: usize
Capture index of the full match in the stanza query
full_match_file_capture_index: usize
Capture index of the full match in the file query
range: Range
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stanza
impl RefUnwindSafe for Stanza
impl Send for Stanza
impl Sync for Stanza
impl Unpin for Stanza
impl UnwindSafe for Stanza
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