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>,
}Expand description
A class constant declaration.
Fields§
§name: IdentConstant name.
visibility: Option<Visibility>Visibility modifier.
is_final: boolWhether final.
type_hint: Option<Box<TypeHint>>Declared type.
value: ExprConstant value.
attributes: Box<[Attribute]>Attributes on the constant.
doc_comment: Option<Comment>Preceding doc comment.
Trait Implementations§
Source§impl Clone for ClassConstDecl
impl Clone for ClassConstDecl
Source§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