pub enum TsParamPropParam {
Ident(BindingIdent),
Assign(AssignPat),
}Variants§
Ident(BindingIdent)
Assign(AssignPat)
Implementations§
Source§impl TsParamPropParam
impl TsParamPropParam
Sourcepub fn as_ident(&self) -> Option<&BindingIdent>
pub fn as_ident(&self) -> Option<&BindingIdent>
Returns Some if self is a reference of variant Ident, and None otherwise.
Sourcepub fn as_mut_ident(&mut self) -> Option<&mut BindingIdent>
pub fn as_mut_ident(&mut self) -> Option<&mut BindingIdent>
Returns Some if self is a mutable reference of variant Ident, and None otherwise.
Sourcepub fn expect_ident(self) -> BindingIdentwhere
TsParamPropParam: Debug,
pub fn expect_ident(self) -> BindingIdentwhere
TsParamPropParam: Debug,
Sourcepub fn ident(self) -> Option<BindingIdent>
pub fn ident(self) -> Option<BindingIdent>
Returns Some if self is of variant Ident, and None otherwise.
Sourcepub fn as_assign(&self) -> Option<&AssignPat>
pub fn as_assign(&self) -> Option<&AssignPat>
Returns Some if self is a reference of variant Assign, and None otherwise.
Sourcepub fn as_mut_assign(&mut self) -> Option<&mut AssignPat>
pub fn as_mut_assign(&mut self) -> Option<&mut AssignPat>
Returns Some if self is a mutable reference of variant Assign, and None otherwise.
Sourcepub fn expect_assign(self) -> AssignPatwhere
TsParamPropParam: Debug,
pub fn expect_assign(self) -> AssignPatwhere
TsParamPropParam: Debug,
Trait Implementations§
Source§impl Clone for TsParamPropParam
impl Clone for TsParamPropParam
Source§fn clone(&self) -> TsParamPropParam
fn clone(&self) -> TsParamPropParam
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TsParamPropParam
impl Debug for TsParamPropParam
Source§impl EqIgnoreSpan for TsParamPropParam
impl EqIgnoreSpan for TsParamPropParam
fn eq_ignore_span(&self, other: &TsParamPropParam) -> bool
Source§impl<V> FoldWith<V> for TsParamPropParam
impl<V> FoldWith<V> for TsParamPropParam
Source§fn fold_with(self, visitor: &mut V) -> TsParamPropParam
fn fold_with(self, visitor: &mut V) -> TsParamPropParam
Calls Fold::fold_ts_param_prop_param with self.
Source§fn fold_children_with(self, visitor: &mut V) -> TsParamPropParam
fn fold_children_with(self, visitor: &mut V) -> TsParamPropParam
Visit children nodes of
self`` with visitor`.Source§impl From<AssignPat> for TsParamPropParam
impl From<AssignPat> for TsParamPropParam
Source§fn from(v: AssignPat) -> TsParamPropParam
fn from(v: AssignPat) -> TsParamPropParam
Converts to this type from the input type.
Source§impl From<BindingIdent> for TsParamPropParam
impl From<BindingIdent> for TsParamPropParam
Source§fn from(v: BindingIdent) -> TsParamPropParam
fn from(v: BindingIdent) -> TsParamPropParam
Converts to this type from the input type.
Source§impl Hash for TsParamPropParam
impl Hash for TsParamPropParam
Source§impl Node for TsParamPropParam
impl Node for TsParamPropParam
Source§impl PartialEq for TsParamPropParam
impl PartialEq for TsParamPropParam
Source§impl Spanned for TsParamPropParam
impl Spanned for TsParamPropParam
Source§impl<V> VisitMutWith<V> for TsParamPropParam
impl<V> VisitMutWith<V> for TsParamPropParam
Source§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_ts_param_prop_param with self.
Source§fn visit_mut_children_with(&mut self, visitor: &mut V)
fn visit_mut_children_with(&mut self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.Source§impl<V> VisitWith<V> for TsParamPropParam
impl<V> VisitWith<V> for TsParamPropParam
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_param_prop_param with self.
Source§fn visit_children_with(&self, visitor: &mut V)
fn visit_children_with(&self, visitor: &mut V)
Visit children nodes of
self`` with visitor`.impl Eq for TsParamPropParam
impl StructuralPartialEq for TsParamPropParam
Auto Trait Implementations§
impl Freeze for TsParamPropParam
impl RefUnwindSafe for TsParamPropParam
impl Send for TsParamPropParam
impl Sync for TsParamPropParam
impl Unpin for TsParamPropParam
impl UnwindSafe for TsParamPropParam
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> ImplicitClone for Twhere
T: Clone,
impl<T> ImplicitClone for Twhere
T: Clone,
fn clone_quote_var(&self) -> Self
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> SpanExt for Twhere
T: Spanned,
impl<T> SpanExt for Twhere
T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
Source§fn comment_range(&self) -> Span
fn comment_range(&self) -> Span
Gets a custom text range to use when emitting comments.