pub(crate) struct Parser<'a, N>where
    N: NamespaceResolver,{
    tokens: Vec<Token<'a>>,
    position: usize,
    namespace_resolver: Option<N>,
    is_in_html_document: bool,
}Fields§
§tokens: Vec<Token<'a>>§position: usize§namespace_resolver: Option<N>§is_in_html_document: boolImplementations§
Source§impl<'a, N> Parser<'a, N>where
    N: NamespaceResolver,
 
impl<'a, N> Parser<'a, N>where
    N: NamespaceResolver,
pub(crate) fn new( input: &'a str, namespace_resolver: Option<N>, is_in_html_document: bool, ) -> Result<Self, TokenizerError>
fn expect_current_token(&self) -> Result<Token<'a>, Error>
fn peek(&self, n: usize) -> Option<Token<'a>>
fn advance(&mut self, advance_by: usize)
pub(crate) fn remaining(&self) -> &[Token<'a>]
fn resolve_qualified_name(&self, prefix: &str) -> Result<Namespace, Error>
fn advance_if_current_token_equals(&mut self, wanted: Token<'a>) -> bool
pub(crate) fn parse_expression(&mut self) -> Result<Expression, Error>
Sourcefn parse_union_expression(&mut self) -> Result<Expression, Error>
 
fn parse_union_expression(&mut self) -> Result<Expression, Error>
Sourcefn parse_path_expression(&mut self) -> Result<Expression, Error>
 
fn parse_path_expression(&mut self) -> Result<Expression, Error>
Sourcefn parse_filter_or_step_expression(&mut self) -> Result<Expression, Error>
 
fn parse_filter_or_step_expression(&mut self) -> Result<Expression, Error>
Sourcefn parse_step_expression(&mut self) -> Result<Expression, Error>
 
fn parse_step_expression(&mut self) -> Result<Expression, Error>
fn parse_node_test(&mut self) -> Result<NodeTest, Error>
Sourcefn parse_predicates(&mut self) -> Result<PredicateListExpression, Error>
 
fn parse_predicates(&mut self) -> Result<PredicateListExpression, Error>
fn parse_function_call( &mut self, function_name: &str, ) -> Result<Expression, Error>
Auto Trait Implementations§
impl<'a, N> Freeze for Parser<'a, N>where
    N: Freeze,
impl<'a, N> RefUnwindSafe for Parser<'a, N>where
    N: RefUnwindSafe,
impl<'a, N> Send for Parser<'a, N>where
    N: Send,
impl<'a, N> Sync for Parser<'a, N>where
    N: Sync,
impl<'a, N> Unpin for Parser<'a, N>where
    N: Unpin,
impl<'a, N> UnwindSafe for Parser<'a, N>where
    N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
 
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
 
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
 
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
 
fn maybe_boxed(self) -> T
Convert