pub fn selector_to_string(
selector: &Selector,
opts: SelectorDisplayOptions,
) -> Result<String, Error>
Expand description
Format a |Selector| as a string.
Returns the formatted |Selector|, or an error if the |Selector| is invalid.
Note that the output will always include both a component and tree selector. If your input is simply “moniker” you will likely see “moniker:root” as many clients implicitly append “root” if it is not present (e.g. iquery).
Name filter lists will only be shown if they have non-default tree names.