Function selectors::selector_to_string
source · pub fn selector_to_string(selector: Selector) -> 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).