Enum swc_ecma_ast::Lit
source · [−]pub enum Lit {
Str(Str),
Bool(Bool),
Null(Null),
Num(Number),
BigInt(BigInt),
Regex(Regex),
JSXText(JSXText),
}
Variants
Str(Str)
Bool(Bool)
Null(Null)
Num(Number)
BigInt(BigInt)
Regex(Regex)
JSXText(JSXText)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Lit
impl<'de> Deserialize<'de> for Lit
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl EqIgnoreSpan for Lit
impl EqIgnoreSpan for Lit
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Atom<JsWordStaticSet>> for Lit
impl From<Atom<JsWordStaticSet>> for Lit
sourceimpl From<BigInt> for Lit
impl From<BigInt> for Lit
sourcefn from(src: BigIntValue) -> Lit
fn from(src: BigIntValue) -> Lit
Converts to this type from the input type.
sourceimpl From<Lit> for JSXAttrValue
impl From<Lit> for JSXAttrValue
impl Eq for Lit
impl StructuralEq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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