Enum swc_ecma_ast::TsThisTypeOrIdent [−][src]
pub enum TsThisTypeOrIdent { TsThisType(TsThisType), Ident(Ident), }
Variants
TsThisType(TsThisType)
Ident(Ident)
Implementations
impl TsThisTypeOrIdent
[src]
impl TsThisTypeOrIdent
[src]pub fn is_ts_this_type(&self) -> bool
[src]
pub fn is_ts_this_type(&self) -> bool
[src]Returns true
if self
is of variant TsThisType
.
pub fn expect_ts_this_type(self) -> TsThisType where
Self: Debug,
[src]
pub fn expect_ts_this_type(self) -> TsThisType where
Self: Debug,
[src]Unwraps the value, yielding the content of TsThisType
.
Panics
Panics if the value is not TsThisType
, with a panic message including the content of self
.
pub fn ts_this_type(self) -> Option<TsThisType>
[src]
pub fn ts_this_type(self) -> Option<TsThisType>
[src]Returns Some
if self
is of variant TsThisType
, and None
otherwise.
pub fn expect_ident(self) -> Ident where
Self: Debug,
[src]
pub fn expect_ident(self) -> Ident where
Self: Debug,
[src]Trait Implementations
impl Clone for TsThisTypeOrIdent
[src]
impl Clone for TsThisTypeOrIdent
[src]fn clone(&self) -> TsThisTypeOrIdent
[src]
fn clone(&self) -> TsThisTypeOrIdent
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TsThisTypeOrIdent
[src]
impl Debug for TsThisTypeOrIdent
[src]impl<'de> Deserialize<'de> for TsThisTypeOrIdent
[src]
impl<'de> Deserialize<'de> for TsThisTypeOrIdent
[src]fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl EqIgnoreSpan for TsThisTypeOrIdent
[src]
impl EqIgnoreSpan for TsThisTypeOrIdent
[src]fn eq_ignore_span(&self, other: &Self) -> bool
[src]
impl From<TsThisType> for TsThisTypeOrIdent
[src]
impl From<TsThisType> for TsThisTypeOrIdent
[src]fn from(v: TsThisType) -> Self
[src]
fn from(v: TsThisType) -> Self
[src]Performs the conversion.
impl Hash for TsThisTypeOrIdent
[src]
impl Hash for TsThisTypeOrIdent
[src]impl PartialEq<TsThisTypeOrIdent> for TsThisTypeOrIdent
[src]
impl PartialEq<TsThisTypeOrIdent> for TsThisTypeOrIdent
[src]fn eq(&self, other: &TsThisTypeOrIdent) -> bool
[src]
fn eq(&self, other: &TsThisTypeOrIdent) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TsThisTypeOrIdent) -> bool
[src]
fn ne(&self, other: &TsThisTypeOrIdent) -> bool
[src]This method tests for !=
.
impl Serialize for TsThisTypeOrIdent
[src]
impl Serialize for TsThisTypeOrIdent
[src]impl Eq for TsThisTypeOrIdent
[src]
impl StructuralEq for TsThisTypeOrIdent
[src]
impl StructuralPartialEq for TsThisTypeOrIdent
[src]
Auto Trait Implementations
impl RefUnwindSafe for TsThisTypeOrIdent
impl Send for TsThisTypeOrIdent
impl Sync for TsThisTypeOrIdent
impl Unpin for TsThisTypeOrIdent
impl UnwindSafe for TsThisTypeOrIdent
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,