Struct ezno_parser::declarations::classes::ClassProperty
source · pub struct ClassProperty {
pub readonly_keyword: Option<Keyword<Readonly>>,
pub key: WithComment<PropertyKey<PublicOrPrivate>>,
pub type_annotation: Option<TypeAnnotation>,
pub value: Option<Box<Expression>>,
pub position: Span,
}
Fields§
§readonly_keyword: Option<Keyword<Readonly>>
§key: WithComment<PropertyKey<PublicOrPrivate>>
§type_annotation: Option<TypeAnnotation>
§value: Option<Box<Expression>>
§position: Span
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 PartialEq<ClassProperty> for ClassProperty
impl PartialEq<ClassProperty> 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 Visitable for ClassProperty
impl Visitable for ClassProperty
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
impl Eq for ClassProperty
impl StructuralEq for ClassProperty
impl StructuralPartialEq for ClassProperty
Auto Trait Implementations§
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