[][src]Struct swc_ecma_ast::Ident

pub struct Ident {
    pub span: Span,
    pub sym: JsWord,
    pub type_ann: Option<TsTypeAnn>,
    pub optional: bool,

Ident with span.


span: Spansym: JsWordtype_ann: Option<TsTypeAnn>optional: bool

TypeScript only. Used in case of an optional parameter.


impl Ident[src]

pub const fn new(sym: JsWord, span: Span) -> Self[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]

impl From<Ident> for Expr[src]

impl From<Ident> for JSXObject[src]

impl From<Ident> for TsThisTypeOrIdent[src]

impl From<Ident> for TsEnumMemberId[src]

impl From<Ident> for TsModuleName[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 TsParamPropParam[src]

impl From<Ident> for TsEntityName[src]

impl From<Ident> for TsFnParam[src]

impl IdentExt for Ident[src]

impl PartialEq<Ident> for Ident[src]

impl Serialize for Ident[src]

impl Spanned for Ident[src]

impl StructuralPartialEq for Ident[src]

Auto Trait Implementations

impl RefUnwindSafe for Ident

impl Send for Ident

impl Sync for Ident

impl Unpin for Ident

impl UnwindSafe for Ident

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> Erased for T

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.