pub enum TsTypeAssertionField {
Span,
Expr,
TypeAnn,
}
Expand description
This enum represents fields of TsTypeAssertionField
Variants§
Implementations§
Trait Implementations§
source§impl Clone for TsTypeAssertionField
impl Clone for TsTypeAssertionField
source§fn clone(&self) -> TsTypeAssertionField
fn clone(&self) -> TsTypeAssertionField
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TsTypeAssertionField
impl Debug for TsTypeAssertionField
source§impl<'de> Deserialize<'de> for TsTypeAssertionField
impl<'de> Deserialize<'de> for TsTypeAssertionField
source§fn 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
source§impl Hash for TsTypeAssertionField
impl Hash for TsTypeAssertionField
source§impl Ord for TsTypeAssertionField
impl Ord for TsTypeAssertionField
source§fn cmp(&self, other: &TsTypeAssertionField) -> Ordering
fn cmp(&self, other: &TsTypeAssertionField) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TsTypeAssertionField
impl PartialEq for TsTypeAssertionField
source§fn eq(&self, other: &TsTypeAssertionField) -> bool
fn eq(&self, other: &TsTypeAssertionField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TsTypeAssertionField
impl PartialOrd for TsTypeAssertionField
source§fn partial_cmp(&self, other: &TsTypeAssertionField) -> Option<Ordering>
fn partial_cmp(&self, other: &TsTypeAssertionField) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TsTypeAssertionField
impl Serialize for TsTypeAssertionField
impl Copy for TsTypeAssertionField
impl Eq for TsTypeAssertionField
impl StructuralPartialEq for TsTypeAssertionField
Auto Trait Implementations§
impl Freeze for TsTypeAssertionField
impl RefUnwindSafe for TsTypeAssertionField
impl Send for TsTypeAssertionField
impl Sync for TsTypeAssertionField
impl Unpin for TsTypeAssertionField
impl UnwindSafe for TsTypeAssertionField
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more