pub struct TsParamProp {
pub span: Span,
pub decorators: Vec<Decorator>,
pub accessibility: Option<Accessibility>,
pub is_override: bool,
pub readonly: bool,
pub param: TsParamPropParam,
}Fields§
§span: Span§decorators: Vec<Decorator>§accessibility: Option<Accessibility>At least one of accessibility or readonly must be set.
is_override: bool§readonly: bool§param: TsParamPropParamTrait Implementations§
Source§impl Clone for TsParamProp
impl Clone for TsParamProp
Source§fn clone(&self) -> TsParamProp
fn clone(&self) -> TsParamProp
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 TsParamProp
impl Debug for TsParamProp
Source§impl EqIgnoreSpan for TsParamProp
impl EqIgnoreSpan for TsParamProp
fn eq_ignore_span(&self, other: &TsParamProp) -> bool
Source§impl<V> FoldWith<V> for TsParamProp
impl<V> FoldWith<V> for TsParamProp
Source§fn fold_with(self, visitor: &mut V) -> TsParamProp
fn fold_with(self, visitor: &mut V) -> TsParamProp
Calls Fold::fold_ts_param_prop with self.
Source§fn fold_children_with(self, visitor: &mut V) -> TsParamProp
fn fold_children_with(self, visitor: &mut V) -> TsParamProp
Visit children nodes of
self`` with visitor`.Source§impl From<TsParamProp> for ParamOrTsParamProp
impl From<TsParamProp> for ParamOrTsParamProp
Source§fn from(v: TsParamProp) -> ParamOrTsParamProp
fn from(v: TsParamProp) -> ParamOrTsParamProp
Converts to this type from the input type.
Source§impl Hash for TsParamProp
impl Hash for TsParamProp
Source§impl Node for TsParamProp
impl Node for TsParamProp
Source§impl PartialEq for TsParamProp
impl PartialEq for TsParamProp
Source§impl Spanned for TsParamProp
impl Spanned for TsParamProp
Source§impl<V> VisitMutWith<V> for TsParamProp
impl<V> VisitMutWith<V> for TsParamProp
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 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 TsParamProp
impl<V> VisitWith<V> for TsParamProp
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_ts_param_prop 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 TsParamProp
impl StructuralPartialEq for TsParamProp
Auto Trait Implementations§
impl Freeze for TsParamProp
impl RefUnwindSafe for TsParamProp
impl Send for TsParamProp
impl Sync for TsParamProp
impl Unpin for TsParamProp
impl UnwindSafe for TsParamProp
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.