Crate selectors

Source

Re-exports§

pub use error::*;

Modules§

error

Structs§

FastError
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.
SelectorDisplayOptions
Settings for how to constrtuct a displayable string from a fidl_fuchsia_diagnostics::Selector.
VerboseError
A slower but more user friendly error that will provide information about the chain of parsers that found the error and some context.

Constants§

ESCAPE_CHARACTER
SELECTOR_DELIMITER

Traits§

ComponentSelector
ParsingError
Implemented by types which can be used to specify the error strategy the parsers should use.
Selector
SelectorExt
StringSelector
TreeSelector
ValidateComponentSelectorExt
ValidateExt
ValidateTreeSelectorExt

Functions§

contains_recursive_glob
Returns true iff a component selector uses the recursive glob. Assumes the selector has already been validated.
match_string
Match a selector against a target string.
match_tree_name_against_selector
Checks whether or not a given tree_name is present in the selector’s tree-name-filter list.
parse_component_selector
Converts an unparsed component selector string into a ComponentSelector.
parse_log_interest_selector
Parses a log severity selector of the form component_selector#SEVERITY. For example: core/foo#DEBUG.
parse_log_interest_selector_or_severity
Parses a log severity selector of the form component_selector#SEVERITY or just SEVERITY. For example: core/foo#DEBUG or INFO.
parse_selector
Converts an unparsed Inspect selector into a ComponentSelector and TreeSelector.
parse_selector_file
Remove any comments process a quoted line.
parse_tree_selector
Converts an unparsed tree selector string into a TreeSelector.
parse_verbose
sanitize_moniker_for_selectors
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.
sanitize_string_for_selectors
Sanitizes raw strings from the system such that they align with the special-character and escaping semantics of the Selector format.
selector_to_string
Format a |Selector| as a string.
take_from_argument
Extracts and validates or parses a selector from a SelectorArgument.