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