Enum swc_ecma_ast::JSXAttrValue
source · [−]pub enum JSXAttrValue {
Lit(Lit),
JSXExprContainer(JSXExprContainer),
JSXElement(Box<JSXElement>),
JSXFragment(JSXFragment),
}
Variants
Lit(Lit)
JSXExprContainer(JSXExprContainer)
JSXElement(Box<JSXElement>)
JSXFragment(JSXFragment)
Trait Implementations
sourceimpl Clone for JSXAttrValue
impl Clone for JSXAttrValue
sourcefn clone(&self) -> JSXAttrValue
fn clone(&self) -> JSXAttrValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for JSXAttrValue
impl Debug for JSXAttrValue
sourceimpl<'de> Deserialize<'de> for JSXAttrValue
impl<'de> Deserialize<'de> for JSXAttrValue
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 JSXAttrValue
impl EqIgnoreSpan for JSXAttrValue
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<Box<JSXElement, Global>> for JSXAttrValue
impl From<Box<JSXElement, Global>> for JSXAttrValue
sourcefn from(v: Box<JSXElement>) -> Self
fn from(v: Box<JSXElement>) -> Self
Converts to this type from the input type.
sourceimpl From<JSXExprContainer> for JSXAttrValue
impl From<JSXExprContainer> for JSXAttrValue
sourcefn from(v: JSXExprContainer) -> Self
fn from(v: JSXExprContainer) -> Self
Converts to this type from the input type.
sourceimpl From<JSXFragment> for JSXAttrValue
impl From<JSXFragment> for JSXAttrValue
sourcefn from(v: JSXFragment) -> Self
fn from(v: JSXFragment) -> Self
Converts to this type from the input type.
sourceimpl From<Lit> for JSXAttrValue
impl From<Lit> for JSXAttrValue
sourceimpl Hash for JSXAttrValue
impl Hash for JSXAttrValue
sourceimpl PartialEq<JSXAttrValue> for JSXAttrValue
impl PartialEq<JSXAttrValue> for JSXAttrValue
sourcefn eq(&self, other: &JSXAttrValue) -> bool
fn eq(&self, other: &JSXAttrValue) -> bool
sourceimpl Serialize for JSXAttrValue
impl Serialize for JSXAttrValue
sourceimpl Spanned for JSXAttrValue
impl Spanned for JSXAttrValue
impl Eq for JSXAttrValue
impl StructuralEq for JSXAttrValue
impl StructuralPartialEq for JSXAttrValue
Auto Trait Implementations
impl RefUnwindSafe for JSXAttrValue
impl Send for JSXAttrValue
impl Sync for JSXAttrValue
impl Unpin for JSXAttrValue
impl UnwindSafe for JSXAttrValue
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