Struct swc_ecma_ast::JSXOpeningElement
source · [−]pub struct JSXOpeningElement {
pub name: JSXElementName,
pub span: Span,
pub attrs: Vec<JSXAttrOrSpread>,
pub self_closing: bool,
pub type_args: Option<Box<TsTypeParamInstantiation>>,
}
Fields
name: JSXElementName
span: Span
attrs: Vec<JSXAttrOrSpread>
self_closing: bool
type_args: Option<Box<TsTypeParamInstantiation>>
Note: This field’s name is different from one from babel because it is misleading
Trait Implementations
sourceimpl Clone for JSXOpeningElement
impl Clone for JSXOpeningElement
sourcefn clone(&self) -> JSXOpeningElement
fn clone(&self) -> JSXOpeningElement
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 JSXOpeningElement
impl Debug for JSXOpeningElement
sourceimpl<'de> Deserialize<'de> for JSXOpeningElement
impl<'de> Deserialize<'de> for JSXOpeningElement
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 JSXOpeningElement
impl EqIgnoreSpan for JSXOpeningElement
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl Hash for JSXOpeningElement
impl Hash for JSXOpeningElement
sourceimpl PartialEq<JSXOpeningElement> for JSXOpeningElement
impl PartialEq<JSXOpeningElement> for JSXOpeningElement
sourcefn eq(&self, other: &JSXOpeningElement) -> bool
fn eq(&self, other: &JSXOpeningElement) -> bool
sourceimpl Serialize for JSXOpeningElement
impl Serialize for JSXOpeningElement
sourceimpl Spanned for JSXOpeningElement
impl Spanned for JSXOpeningElement
sourceimpl Take for JSXOpeningElement
impl Take for JSXOpeningElement
impl Eq for JSXOpeningElement
impl StructuralEq for JSXOpeningElement
impl StructuralPartialEq for JSXOpeningElement
Auto Trait Implementations
impl RefUnwindSafe for JSXOpeningElement
impl Send for JSXOpeningElement
impl Sync for JSXOpeningElement
impl Unpin for JSXOpeningElement
impl UnwindSafe for JSXOpeningElement
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