Enum wasm_bindgen_backend::ast::LitOrExpr
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)