pub enum Expr {
Literal(Literal),
FunctionCall {
name: Ident,
args: Vec<Expr>,
span: Span,
},
Array {
elements: Vec<Expr>,
span: Span,
},
NamedArg {
name: Ident,
value: Box<Expr>,
span: Span,
},
Ident(Ident),
}Expand description
An expression (used in attribute arguments).
Variants§
Literal(Literal)
A literal value.
FunctionCall
A function call: name(arg1, arg2, ...).
Array
An array: [item1, item2, ...].
NamedArg
A named argument: name: value.
Fields
Ident(Ident)
An identifier reference.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnsafeUnpin for Expr
impl UnwindSafe for Expr
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