Struct swc_ecma_ast::ClassProp
source · [−]pub struct ClassProp {Show 13 fields
pub span: Span,
pub key: PropName,
pub value: Option<Box<Expr>>,
pub type_ann: Option<Box<TsTypeAnn>>,
pub is_static: bool,
pub decorators: Vec<Decorator>,
pub accessibility: Option<Accessibility>,
pub is_abstract: bool,
pub is_optional: bool,
pub is_override: bool,
pub readonly: bool,
pub declare: bool,
pub definite: bool,
}
Fields
span: Span
key: PropName
value: Option<Box<Expr>>
type_ann: Option<Box<TsTypeAnn>>
is_static: bool
decorators: Vec<Decorator>
accessibility: Option<Accessibility>
Typescript extension.
is_abstract: bool
Typescript extension.
is_optional: bool
is_override: bool
readonly: bool
declare: bool
definite: bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ClassProp
impl<'de> Deserialize<'de> for ClassProp
sourcefn 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
sourceimpl EqIgnoreSpan for ClassProp
impl EqIgnoreSpan for ClassProp
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<ClassProp> for ClassMember
impl From<ClassProp> for ClassMember
impl Eq for ClassProp
impl StructuralEq for ClassProp
impl StructuralPartialEq for ClassProp
Auto Trait Implementations
impl RefUnwindSafe for ClassProp
impl Send for ClassProp
impl Sync for ClassProp
impl Unpin for ClassProp
impl UnwindSafe for ClassProp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more