Struct swc_ecma_ast::Ident [−][src]
Ident with span.
Fields
span: Span
sym: JsWord
optional: bool
TypeScript only. Used in case of an optional parameter.
Implementations
impl Ident
[src]
Trait Implementations
impl AsRef<str> for Ident
[src]
impl AstNode for Ident
[src]
impl Clone for Ident
[src]
impl Debug for Ident
[src]
impl<'de> Deserialize<'de> for Ident
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Ident
[src]
impl EqIgnoreSpan for Ident
[src]
fn eq_ignore_span(&self, other: &Self) -> bool
[src]
impl From<Ident> for Expr
[src]
impl From<Ident> for BindingIdent
[src]
impl From<Ident> for TsEnumMemberId
[src]
impl From<Ident> for TsModuleName
[src]
impl From<Ident> for JSXObject
[src]
impl From<Ident> for JSXElementName
[src]
impl From<Ident> for JSXAttrName
[src]
impl From<Ident> for Pat
[src]
impl From<Ident> for Prop
[src]
impl From<Ident> for PropName
[src]
impl From<Ident> for TsEntityName
[src]
impl From<Ident> for TsThisTypeOrIdent
[src]
impl Hash for Ident
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IdentExt for Ident
[src]
fn is_reserved_for_es3(&self) -> bool
[src]
fn is_reserved_only_for_es3(&self) -> bool
[src]
impl PartialEq<Ident> for Ident
[src]
impl Serialize for Ident
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for Ident
[src]
impl StructuralEq for Ident
[src]
impl StructuralPartialEq for Ident
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ident
[src]
impl Send for Ident
[src]
impl Sync for Ident
[src]
impl Unpin for Ident
[src]
impl UnwindSafe for Ident
[src]
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>,