[−][src]Enum swc_ecma_ast::ParamOrTsParamProp
Variants
TsParamProp(TsParamProp)
Param(Param)
Implementations
impl ParamOrTsParamProp
[src]
pub fn is_ts_param_prop(&self) -> bool
[src]
Returns true
if self
is of variant TsParamProp
.
pub fn expect_ts_param_prop(self) -> TsParamProp where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of TsParamProp
.
Panics
Panics if the value is not TsParamProp
, with a panic message including the content of self
.
pub fn ts_param_prop(self) -> Option<TsParamProp>
[src]
Returns Some
if self
is of variant TsParamProp
, and None
otherwise.
pub fn is_param(&self) -> bool
[src]
Returns true
if self
is of variant Param
.
pub fn expect_param(self) -> Param where
Self: Debug,
[src]
Self: Debug,
Unwraps the value, yielding the content of Param
.
Panics
Panics if the value is not Param
, with a panic message including the content of self
.
pub fn param(self) -> Option<Param>
[src]
Returns Some
if self
is of variant Param
, and None
otherwise.
Trait Implementations
impl Clone for ParamOrTsParamProp
[src]
fn clone(&self) -> ParamOrTsParamProp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ParamOrTsParamProp
[src]
impl<'de> Deserialize<'de> for ParamOrTsParamProp
[src]
fn deserialize<D>(Deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for ParamOrTsParamProp
[src]
impl From<Param> for ParamOrTsParamProp
[src]
impl From<TsParamProp> for ParamOrTsParamProp
[src]
fn from(v: TsParamProp) -> Self
[src]
impl Hash for ParamOrTsParamProp
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ParamOrTsParamProp> for ParamOrTsParamProp
[src]
fn eq(&self, other: &ParamOrTsParamProp) -> bool
[src]
fn ne(&self, other: &ParamOrTsParamProp) -> bool
[src]
impl Serialize for ParamOrTsParamProp
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl Spanned for ParamOrTsParamProp
[src]
impl StructuralEq for ParamOrTsParamProp
[src]
impl StructuralPartialEq for ParamOrTsParamProp
[src]
Auto Trait Implementations
impl RefUnwindSafe for ParamOrTsParamProp
impl Send for ParamOrTsParamProp
impl Sync for ParamOrTsParamProp
impl Unpin for ParamOrTsParamProp
impl UnwindSafe for ParamOrTsParamProp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,