[−][src]Enum swc_ecma_ast::JSXObject
Used for obj
property of JSXMemberExpr
.
Variants
JSXMemberExpr(Box<JSXMemberExpr>)
Ident(Ident)
Implementations
impl JSXObject
[src]
pub fn is_jsx_member_expr(&self) -> bool
[src]
Returns true
if self
is of variant JSXMemberExpr
.
pub fn expect_jsx_member_expr(self) -> Box<JSXMemberExpr> where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of JSXMemberExpr
.
Panics
Panics if the value is not JSXMemberExpr
, with a panic message including the content of self
.
pub fn jsx_member_expr(self) -> Option<Box<JSXMemberExpr>>
[src]
Returns Some
if self
is of variant JSXMemberExpr
, and None
otherwise.
pub fn is_ident(&self) -> bool
[src]
Returns true
if self
is of variant Ident
.
pub fn expect_ident(self) -> Ident where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Ident
.
Panics
Panics if the value is not Ident
, with a panic message including the content of self
.
pub fn ident(self) -> Option<Ident>
[src]
Returns Some
if self
is of variant Ident
, and None
otherwise.
Trait Implementations
impl Clone for JSXObject
[src]
impl Debug for JSXObject
[src]
impl<'de> Deserialize<'de> for JSXObject
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for JSXObject
[src]
impl From<Box<JSXMemberExpr, Global>> for JSXObject
[src]
fn from(v: Box<JSXMemberExpr>) -> Self
[src]
impl From<Ident> for JSXObject
[src]
impl Hash for JSXObject
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<JSXObject> for JSXObject
[src]
impl Serialize for JSXObject
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for JSXObject
[src]
impl StructuralEq for JSXObject
[src]
impl StructuralPartialEq for JSXObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for JSXObject
impl Send for JSXObject
impl Sync for JSXObject
impl Unpin for JSXObject
impl UnwindSafe for JSXObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,