pub(super) struct ExprParser<'a> {
stream: TokenStream<'a, ExprToken<'a>>,
decimal_places: Option<u8>,
pub(super) errors: Vec<ParseError>,
}Fields§
§stream: TokenStream<'a, ExprToken<'a>>§decimal_places: Option<u8>§errors: Vec<ParseError>Implementations§
Source§impl<'a> ExprParser<'a>
impl<'a> ExprParser<'a>
pub(super) fn new(tokens: &'a [ExprToken<'a>]) -> Self
pub(super) fn parse(&mut self) -> (Option<ExpressionNode>, Option<u8>)
fn peek(&self) -> Option<&ExprToken<'a>>
fn advance(&mut self) -> Option<&ExprToken<'a>>
fn parse_expression(&mut self) -> Option<ExpressionNode>
fn parse_additive(&mut self) -> Option<ExpressionNode>
fn parse_multiplicative(&mut self) -> Option<ExpressionNode>
fn parse_unary(&mut self) -> Option<ExpressionNode>
fn parse_atomic(&mut self) -> Option<ExpressionNode>
fn parse_function_args(&mut self, func_name: String) -> ExpressionNode
Auto Trait Implementations§
impl<'a> Freeze for ExprParser<'a>
impl<'a> RefUnwindSafe for ExprParser<'a>
impl<'a> Send for ExprParser<'a>
impl<'a> Sync for ExprParser<'a>
impl<'a> Unpin for ExprParser<'a>
impl<'a> UnsafeUnpin for ExprParser<'a>
impl<'a> UnwindSafe for ExprParser<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more