pub enum Expr {
Atom(Atom),
Primary(Primary),
UnaryOp(UnaryOp, Box<Expr>),
BinaryOp(BinaryOp, Box<(Expr, Expr)>),
Assignment(Box<Assignment>),
Declaration(Box<Declaration>),
Tuple(Box<[ExprMeta]>),
IfExpr {
branches: Box<[ConditionalBranch]>,
else_clause: Option<Box<ExprBlock>>,
},
Block {
label: Option<Label>,
suite: Box<ExprBlock>,
},
FunctionDef(FunctionDef),
Echo(Box<Expr>),
}
Variants
Atom(Atom)
Primary(Primary)
UnaryOp(UnaryOp, Box<Expr>)
BinaryOp(BinaryOp, Box<(Expr, Expr)>)
Assignment(Box<Assignment>)
Declaration(Box<Declaration>)
Tuple(Box<[ExprMeta]>)
IfExpr
Block
FunctionDef(FunctionDef)
Echo(Box<Expr>)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more