Re-exports§
pub use error::*;
Modules§
Structs§
- Fast
Error - 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.
- Selector
Display Options - Settings for how to constrtuct a displayable string from a
fidl_fuchsia_diagnostics::Selector
. - Verbose
Error - A slower but more user friendly error that will provide information about the chain of parsers that found the error and some context.
Constants§
Traits§
- Component
Selector - Parsing
Error - Implemented by types which can be used to specify the error strategy the parsers should use.
- Selector
- Selector
Ext - String
Selector - Tree
Selector - Validate
Component Selector Ext - Validate
Ext - Validate
Tree Selector Ext
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 justSEVERITY
. For example:core/foo#DEBUG
orINFO
. - 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
.