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