pub struct PropertyDecl {
pub name: Ident,
pub visibility: Option<Visibility>,
pub set_visibility: Option<Visibility>,
pub is_static: bool,
pub is_readonly: bool,
pub type_hint: Option<TypeHint>,
pub default: Option<Expr>,
pub attributes: Box<[Attribute]>,
pub hooks: Box<[PropertyHook]>,
pub doc_comment: Option<Comment>,
}Fields§
§name: Ident§visibility: Option<Visibility>§set_visibility: Option<Visibility>§is_static: bool§is_readonly: bool§type_hint: Option<TypeHint>§default: Option<Expr>§attributes: Box<[Attribute]>§hooks: Box<[PropertyHook]>§doc_comment: Option<Comment>Trait Implementations§
Source§impl Clone for PropertyDecl
impl Clone for PropertyDecl
Source§fn clone(&self) -> PropertyDecl
fn clone(&self) -> PropertyDecl
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 PropertyDecl
impl Debug for PropertyDecl
Auto Trait Implementations§
impl Freeze for PropertyDecl
impl RefUnwindSafe for PropertyDecl
impl Send for PropertyDecl
impl Sync for PropertyDecl
impl Unpin for PropertyDecl
impl UnsafeUnpin for PropertyDecl
impl UnwindSafe for PropertyDecl
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