pub enum Expr<'a> {
Show 19 variants
BoolLit(&'a str),
NumLit(&'a str),
StrLit(&'a str),
CharLit(&'a str),
Var(&'a str),
Path(Vec<&'a str>),
Array(Vec<Expr<'a>>),
Attr(Box<Expr<'a>>, &'a str),
Index(Box<Expr<'a>>, Box<Expr<'a>>),
Filter(&'a str, Vec<Expr<'a>>),
NamedArgument(&'a str, Box<Expr<'a>>),
Unary(&'a str, Box<Expr<'a>>),
BinOp(&'a str, Box<Expr<'a>>, Box<Expr<'a>>),
Range(&'a str, Option<Box<Expr<'a>>>, Option<Box<Expr<'a>>>),
Group(Box<Expr<'a>>),
Tuple(Vec<Expr<'a>>),
Call(Box<Expr<'a>>, Vec<Expr<'a>>),
RustMacro(Vec<&'a str>, &'a str),
Try(Box<Expr<'a>>),
}
Variants§
BoolLit(&'a str)
NumLit(&'a str)
StrLit(&'a str)
CharLit(&'a str)
Var(&'a str)
Path(Vec<&'a str>)
Array(Vec<Expr<'a>>)
Attr(Box<Expr<'a>>, &'a str)
Index(Box<Expr<'a>>, Box<Expr<'a>>)
Filter(&'a str, Vec<Expr<'a>>)
NamedArgument(&'a str, Box<Expr<'a>>)
Unary(&'a str, Box<Expr<'a>>)
BinOp(&'a str, Box<Expr<'a>>, Box<Expr<'a>>)
Range(&'a str, Option<Box<Expr<'a>>>, Option<Box<Expr<'a>>>)
Group(Box<Expr<'a>>)
Tuple(Vec<Expr<'a>>)
Call(Box<Expr<'a>>, Vec<Expr<'a>>)
RustMacro(Vec<&'a str>, &'a str)
Try(Box<Expr<'a>>)
Trait Implementations§
impl<'a> StructuralPartialEq for Expr<'a>
Auto Trait Implementations§
impl<'a> Freeze for Expr<'a>
impl<'a> RefUnwindSafe for Expr<'a>
impl<'a> Send for Expr<'a>
impl<'a> Sync for Expr<'a>
impl<'a> Unpin for Expr<'a>
impl<'a> UnwindSafe for Expr<'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