pub struct Constant {
pub name: String,
pub constant_type: Type,
pub value: Expression,
pub public: bool,
}Expand description
Compile-time constant declaration.
Fields§
§name: StringConstant name.
constant_type: TypeConstant type.
value: ExpressionConstant value expression.
public: boolWhether the constant is publicly visible (not static in C).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync 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