Struct syntect::highlighting::ScopeSelector [] [src]

pub struct ScopeSelector { /* fields omitted */ }

A single selector consisting of a stack to match and a possible stack to exclude from being matched. You probably want ScopeSelectors which is this but with union support.

Methods

impl ScopeSelector
[src]

Checks if this selector matches a given scope stack. See ScopeSelectors#does_match for more info.

If this selector is really just a single scope, return it

Trait Implementations

impl Debug for ScopeSelector
[src]

Formats the value using the given formatter.

impl Clone for ScopeSelector
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ScopeSelector
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ScopeSelector
[src]

impl Default for ScopeSelector
[src]

Returns the "default value" for a type. Read more

impl FromStr for ScopeSelector
[src]

The associated error which can be returned from parsing.

Parses a scope stack followed optionally by (one or more) " -" and then a scope stack to exclude