Crate selectors

source ·

Re-exports

pub use error::*;

Modules

Structs

A fast efficient error that won’t provide much information besides the name kind of nom parsers that failed and the position at which it failed.
A slower but more user friendly error that will provide information about the chain of parsers that found the error and some context.

Statics

Traits

Functions

Returns true iff a component selector uses the recursive glob. Assumes the selector has already been validated.
Evaluates a component moniker against a single selector, returning True if the selector matches the component, else false.
Evaluates a component moniker against a list of selectors, returning all of the selectors which are matches for that moniker.
Evaluates a component moniker against a list of component selectors, returning all of the component selectors which are matches for that moniker.
Match a selector against a target string.
Converts an unparsed component selector string into a ComponentSelector.
Converts an unparsed Inspect selector into a ComponentSelector and TreeSelector.
Remove any comments process a quoted line.
Loads all the selectors in the given directory.
Sanitizes a moniker raw string such that it can be used in a selector. Monikers have a restricted set of characters a-z, 0-9, _, ., -. Each moniker segment is separated by a \. Segments for collections also contain :. That : will be escaped.
Sanitizes raw strings from the system such that they align with the special-character and escaping semantics of the Selector format.
Format a |Selector| as a string.
Extracts and validates or parses a selector from a SelectorArgument.
Converts a string into a vector of string tokens representing the unparsed string delimited by the provided delimiter, excluded escaped delimiters.