#[repr(C)]pub struct Constant {
pub name: RString,
pub docs: DocBlock,
pub value: Option<RString>,
}
Expand description
Represents an exported constant, stand alone or attached to a class.
Fields§
§name: RString
Name of the constant.
docs: DocBlock
Documentation comments for the constant.
value: Option<RString>
Value of the constant.
Trait Implementations§
Source§impl From<(String, &'static [&'static str])> for Constant
impl From<(String, &'static [&'static str])> for Constant
Source§fn from(val: (String, DocComments)) -> Self
fn from(val: (String, DocComments)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl !Send for Constant
impl !Sync for Constant
impl Unpin 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