Struct swc_ecma_ast::JSXAttr
source · [−]pub struct JSXAttr {
pub span: Span,
pub name: JSXAttrName,
pub value: Option<JSXAttrValue>,
}
Fields
span: Span
name: JSXAttrName
value: Option<JSXAttrValue>
Babel uses Expr instead of JSXAttrValue
Trait Implementations
sourceimpl<'de> Deserialize<'de> for JSXAttr
impl<'de> Deserialize<'de> for JSXAttr
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 JSXAttr
impl EqIgnoreSpan for JSXAttr
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<JSXAttr> for JSXAttrOrSpread
impl From<JSXAttr> for JSXAttrOrSpread
impl Eq for JSXAttr
impl StructuralEq for JSXAttr
impl StructuralPartialEq for JSXAttr
Auto Trait Implementations
impl RefUnwindSafe for JSXAttr
impl Send for JSXAttr
impl Sync for JSXAttr
impl Unpin for JSXAttr
impl UnwindSafe for JSXAttr
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