#[repr(C)]pub struct Constant {
pub name: RString,
pub docs: DocBlock,
pub value: Option<RString>,
pub visibility: Visibility,
}Expand description
Represents an exported constant, stand alone or attached to a class.
Fields§
§name: RStringName of the constant.
docs: DocBlockDocumentation comments for the constant.
value: Option<RString>Value of the constant.
visibility: VisibilityVisibility of the constant. Always public for module constants.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Constant
impl !Sync for Constant
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Unpin for Constant
impl UnsafeUnpin for Constant
impl UnwindSafe for Constant
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