Struct tree_sitter_graph::ast::Capture
source · pub struct Capture {
pub name: Identifier,
pub quantifier: CaptureQuantifier,
pub file_capture_index: usize,
pub stanza_capture_index: usize,
pub location: Location,
}
Expand description
A capture expression that references a syntax node
Fields§
§name: Identifier
The name of the capture
quantifier: CaptureQuantifier
The suffix of the capture
file_capture_index: usize
Capture index in the merged file query
stanza_capture_index: usize
Capture index in the stanza query
location: Location
Trait Implementations§
source§impl From<Capture> for Expression
impl From<Capture> for Expression
source§fn from(expr: Capture) -> Expression
fn from(expr: Capture) -> Expression
Converts to this type from the input type.
source§impl PartialEq for Capture
impl PartialEq for Capture
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnwindSafe for Capture
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