Struct swc_estree_ast::ClassProperty
source · pub struct ClassProperty {Show 13 fields
pub base: BaseNode,
pub key: ObjectKey,
pub value: Option<Box<Expression>>,
pub type_annotation: Option<Box<TypeAnnotOrNoop>>,
pub decorators: Option<Vec<Decorator>>,
pub computed: Option<bool>,
pub is_static: Option<bool>,
pub is_abstract: Option<bool>,
pub accessibility: Option<Access>,
pub declare: Option<bool>,
pub definite: Option<bool>,
pub optional: Option<bool>,
pub readonly: Option<bool>,
}
Fields§
§base: BaseNode
§key: ObjectKey
§value: Option<Box<Expression>>
§type_annotation: Option<Box<TypeAnnotOrNoop>>
§decorators: Option<Vec<Decorator>>
§computed: Option<bool>
§is_static: Option<bool>
§is_abstract: Option<bool>
§accessibility: Option<Access>
§declare: Option<bool>
§definite: Option<bool>
§optional: Option<bool>
§readonly: Option<bool>
Trait Implementations§
source§impl Clone for ClassProperty
impl Clone for ClassProperty
source§fn clone(&self) -> ClassProperty
fn clone(&self) -> ClassProperty
Returns a copy 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 ClassProperty
impl Debug for ClassProperty
source§impl<'de> Deserialize<'de> for ClassProperty
impl<'de> Deserialize<'de> for ClassProperty
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ClassProperty
impl PartialEq for ClassProperty
source§fn eq(&self, other: &ClassProperty) -> bool
fn eq(&self, other: &ClassProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ClassProperty
impl Serialize for ClassProperty
impl StructuralPartialEq for ClassProperty
Auto Trait Implementations§
impl Freeze for ClassProperty
impl RefUnwindSafe for ClassProperty
impl Send for ClassProperty
impl Sync for ClassProperty
impl Unpin for ClassProperty
impl UnwindSafe for ClassProperty
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> 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 more