pub enum LitOrExpr {
Expr(Expr),
Lit(String),
}
Expand description
An enum representing either a literal value (Lit
) or an expression (syn::Expr
).
Variants§
Expr(Expr)
Represents an expression that needs to be evaluated before it can be encoded
Lit(String)
Represents a literal string that can be directly encoded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LitOrExpr
impl RefUnwindSafe for LitOrExpr
impl !Send for LitOrExpr
impl !Sync for LitOrExpr
impl Unpin for LitOrExpr
impl UnwindSafe for LitOrExpr
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