Skip to main content

parse_qualified_name

Function parse_qualified_name 

Source
fn parse_qualified_name<'i, P, Impl>(
    parser: &P,
    input: &mut Parser<'i>,
    in_attr_selector: bool,
) -> Result<Option<(QNamePrefix<Impl>, Option<CowRcStr<'i>>)>, ParseError<P::Error>>
where P: Parser<'i, Impl = Impl>, Impl: SelectorImpl,
Expand description
  • Err(()): Invalid selector, abort
  • Ok(None): Not a simple selector, could be something else. input was not consumed.
  • Ok(Some((namespace, local_name))): None for the local name means a * universal selector