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§
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.
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl Freeze for Capture
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