pub struct GetterProp {
pub span: Span,
pub key: PropName,
pub type_ann: Option<Box<TsTypeAnn>>,
pub body: Option<BlockStmt>,
}Fields§
§span: Span§key: PropName§type_ann: Option<Box<TsTypeAnn>>§body: Option<BlockStmt>Trait Implementations§
Source§impl Clone for GetterProp
impl Clone for GetterProp
Source§fn clone(&self) -> GetterProp
fn clone(&self) -> GetterProp
Returns a duplicate 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 GetterProp
impl Debug for GetterProp
Source§impl Default for GetterProp
impl Default for GetterProp
Source§fn default() -> GetterProp
fn default() -> GetterProp
Returns the “default value” for a type. Read more
Source§impl EqIgnoreSpan for GetterProp
impl EqIgnoreSpan for GetterProp
fn eq_ignore_span(&self, other: &GetterProp) -> bool
Source§impl<V> FoldWith<V> for GetterProp
impl<V> FoldWith<V> for GetterProp
Source§fn fold_with(self, visitor: &mut V) -> GetterProp
fn fold_with(self, visitor: &mut V) -> GetterProp
Calls Fold::fold_getter_prop with self.
Source§fn fold_children_with(self, visitor: &mut V) -> GetterProp
fn fold_children_with(self, visitor: &mut V) -> GetterProp
Visit children nodes of
self`` with visitor`.Source§impl From<GetterProp> for Prop
impl From<GetterProp> for Prop
Source§fn from(v: GetterProp) -> Prop
fn from(v: GetterProp) -> Prop
Converts to this type from the input type.
Source§impl Hash for GetterProp
impl Hash for GetterProp
Source§impl Node for GetterProp
impl Node for GetterProp
Source§impl PartialEq for GetterProp
impl PartialEq for GetterProp
Source§impl Spanned for GetterProp
impl Spanned for GetterProp
Source§impl<V> VisitMutWith<V> for GetterProp
impl<V> VisitMutWith<V> for GetterProp
Source§fn visit_mut_with(&mut self, visitor: &mut V)
fn visit_mut_with(&mut self, visitor: &mut V)
Calls VisitMut::visit_mut_getter_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 GetterProp
impl<V> VisitWith<V> for GetterProp
Source§fn visit_with(&self, visitor: &mut V)
fn visit_with(&self, visitor: &mut V)
Calls Visit::visit_getter_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 GetterProp
impl StructuralPartialEq for GetterProp
Auto Trait Implementations§
impl Freeze for GetterProp
impl RefUnwindSafe for GetterProp
impl Send for GetterProp
impl Sync for GetterProp
impl Unpin for GetterProp
impl UnwindSafe for GetterProp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.