Struct swc_ecma_ast::TsTypeParam
source · [−]pub struct TsTypeParam {
pub span: Span,
pub name: Ident,
pub is_in: bool,
pub is_out: bool,
pub is_const: bool,
pub constraint: Option<Box<TsType>>,
pub default: Option<Box<TsType>>,
}
Fields
span: Span
name: Ident
is_in: bool
is_out: bool
is_const: bool
constraint: Option<Box<TsType>>
default: Option<Box<TsType>>
Trait Implementations
sourceimpl Clone for TsTypeParam
impl Clone for TsTypeParam
sourcefn clone(&self) -> TsTypeParam
fn clone(&self) -> TsTypeParam
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 TsTypeParam
impl Debug for TsTypeParam
sourceimpl<'de> Deserialize<'de> for TsTypeParam
impl<'de> Deserialize<'de> for TsTypeParam
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 TsTypeParam
impl EqIgnoreSpan for TsTypeParam
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl Hash for TsTypeParam
impl Hash for TsTypeParam
sourceimpl PartialEq<TsTypeParam> for TsTypeParam
impl PartialEq<TsTypeParam> for TsTypeParam
sourcefn eq(&self, other: &TsTypeParam) -> bool
fn eq(&self, other: &TsTypeParam) -> bool
sourceimpl Serialize for TsTypeParam
impl Serialize for TsTypeParam
sourceimpl Spanned for TsTypeParam
impl Spanned for TsTypeParam
impl Eq for TsTypeParam
impl StructuralEq for TsTypeParam
impl StructuralPartialEq for TsTypeParam
Auto Trait Implementations
impl RefUnwindSafe for TsTypeParam
impl Send for TsTypeParam
impl Sync for TsTypeParam
impl Unpin for TsTypeParam
impl UnwindSafe for TsTypeParam
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