struct ExprParser {
toks: Vec<Tok>,
pos: usize,
}Fields§
§toks: Vec<Tok>§pos: usizeImplementations§
Source§impl ExprParser
impl ExprParser
fn new(toks: Vec<Tok>) -> Self
fn peek(&self) -> Option<&Tok>
fn bump(&mut self) -> Option<Tok>
fn eat(&mut self, tok: &Tok) -> bool
fn parse(self) -> Result<Expr>
fn parse_or(&mut self) -> Result<Expr>
fn parse_and(&mut self) -> Result<Expr>
fn parse_cmp(&mut self) -> Result<Expr>
fn parse_add(&mut self) -> Result<Expr>
fn parse_mul(&mut self) -> Result<Expr>
fn parse_bitand(&mut self) -> Result<Expr>
fn parse_unary(&mut self) -> Result<Expr>
fn parse_primary(&mut self) -> Result<Expr>
Auto Trait Implementations§
impl Freeze for ExprParser
impl RefUnwindSafe for ExprParser
impl Send for ExprParser
impl Sync for ExprParser
impl Unpin for ExprParser
impl UnsafeUnpin for ExprParser
impl UnwindSafe for ExprParser
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