Struct syntect::highlighting::ScopeSelector [−][src]
pub struct ScopeSelector {
pub path: ScopeStack,
pub excludes: Vec<ScopeStack>,
}
Expand description
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.
Fields
path: ScopeStack
excludes: Vec<ScopeStack>
Implementations
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
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Parses a scope stack followed optionally by (one or more) “ -“ and then a scope stack to exclude
type Err = ParseScopeError
type Err = ParseScopeError
The associated error which can be returned from parsing.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ScopeSelector
impl Send for ScopeSelector
impl Sync for ScopeSelector
impl Unpin for ScopeSelector
impl UnwindSafe for ScopeSelector
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.