Function selectors::parser::parse_type_selector

source ยท
fn parse_type_selector<'i, 't, P, Impl, S>(
    parser: &P,
    input: &mut Parser<'i, 't>,
    state: SelectorParsingState,
    sink: &mut S,
) -> Result<bool, ParseError<'i, P::Error>>
where P: Parser<'i, Impl = Impl>, Impl: SelectorImpl, S: Push<Component<Impl>>,
Expand description
  • Err(()): Invalid selector, abort
  • Ok(false): Not a type selector, could be something else. input was not consumed.
  • Ok(true): Length 0 (*|*), 1 (*|E or ns|*) or 2 (|E or ns|E)