pub struct Stanza {
    pub query: Query,
    pub statements: Vec<Statement>,
    pub full_match_file_capture_index: usize,
    pub location: Location,
}
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_file_capture_index: usize

Capture index of the full match in the file query

location: Location

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.