Struct tree_sitter_highlight::Highlighter[][src]

pub struct Highlighter { /* fields omitted */ }
Expand description

Performs syntax highlighting, recognizing a given list of highlight names.

For the best performance Highlighter values should be reused between syntax highlighting calls. A separate highlighter is needed for each thread that is performing highlighting.

Implementations

Iterate over the highlighted regions for a given slice of source code.

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

Performs the conversion.

Performs the conversion.

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.