pub struct ClassProperty {
pub modifiers: DeclarationModifiers,
pub name: PropertyName,
pub optional: bool,
pub definite: bool,
pub type_annotation: Option<TypeAnnotationNode>,
pub initializer: Option<Box<Expr>>,
}Fields§
§modifiers: DeclarationModifiers§name: PropertyName§optional: bool§definite: bool§type_annotation: Option<TypeAnnotationNode>§initializer: Option<Box<Expr>>Trait Implementations§
Source§impl Clone for ClassProperty
impl Clone for ClassProperty
Source§fn clone(&self) -> ClassProperty
fn clone(&self) -> ClassProperty
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
impl Eq for ClassProperty
Source§impl PartialEq for ClassProperty
impl PartialEq 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 UnsafeUnpin 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