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: IdentifierThe name of the capture
quantifier: CaptureQuantifierThe suffix of the capture
file_capture_index: usizeCapture index in the merged file query
stanza_capture_index: usizeCapture index in the stanza query
location: LocationTrait Implementations
sourceimpl From<Capture> for Expression
impl From<Capture> for Expression
sourcefn from(expr: Capture) -> Expression
fn from(expr: Capture) -> Expression
Performs the conversion.
impl Eq for Capture
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more