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