Struct swc_ecma_ast::TsTypeAliasDecl
source · [−]pub struct TsTypeAliasDecl {
pub span: Span,
pub declare: bool,
pub id: Ident,
pub type_params: Option<Box<TsTypeParamDecl>>,
pub type_ann: Box<TsType>,
}
Fields
span: Span
declare: bool
id: Ident
type_params: Option<Box<TsTypeParamDecl>>
type_ann: Box<TsType>
Trait Implementations
sourceimpl Clone for TsTypeAliasDecl
impl Clone for TsTypeAliasDecl
sourcefn clone(&self) -> TsTypeAliasDecl
fn clone(&self) -> TsTypeAliasDecl
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 TsTypeAliasDecl
impl Debug for TsTypeAliasDecl
sourceimpl<'de> Deserialize<'de> for TsTypeAliasDecl
impl<'de> Deserialize<'de> for TsTypeAliasDecl
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 TsTypeAliasDecl
impl EqIgnoreSpan for TsTypeAliasDecl
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsTypeAliasDecl> for Decl
impl From<TsTypeAliasDecl> for Decl
sourcefn from(src: TsTypeAliasDecl) -> Decl
fn from(src: TsTypeAliasDecl) -> Decl
Converts to this type from the input type.
sourceimpl From<TsTypeAliasDecl> for ModuleItem
impl From<TsTypeAliasDecl> for ModuleItem
sourcefn from(src: TsTypeAliasDecl) -> ModuleItem
fn from(src: TsTypeAliasDecl) -> ModuleItem
Converts to this type from the input type.
sourceimpl From<TsTypeAliasDecl> for Stmt
impl From<TsTypeAliasDecl> for Stmt
sourcefn from(src: TsTypeAliasDecl) -> Stmt
fn from(src: TsTypeAliasDecl) -> Stmt
Converts to this type from the input type.
sourceimpl Hash for TsTypeAliasDecl
impl Hash for TsTypeAliasDecl
sourceimpl PartialEq<TsTypeAliasDecl> for TsTypeAliasDecl
impl PartialEq<TsTypeAliasDecl> for TsTypeAliasDecl
sourcefn eq(&self, other: &TsTypeAliasDecl) -> bool
fn eq(&self, other: &TsTypeAliasDecl) -> bool
sourceimpl Serialize for TsTypeAliasDecl
impl Serialize for TsTypeAliasDecl
sourceimpl Spanned for TsTypeAliasDecl
impl Spanned for TsTypeAliasDecl
impl Eq for TsTypeAliasDecl
impl StructuralEq for TsTypeAliasDecl
impl StructuralPartialEq for TsTypeAliasDecl
Auto Trait Implementations
impl RefUnwindSafe for TsTypeAliasDecl
impl Send for TsTypeAliasDecl
impl Sync for TsTypeAliasDecl
impl Unpin for TsTypeAliasDecl
impl UnwindSafe for TsTypeAliasDecl
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