pub struct StaticVar {
pub object: ObjectId,
pub init: Expr,
}Expand description
A static mut item and its constant initialiser.
Fields§
§object: ObjectIdThe object the item defines.
init: ExprThe initial value; C zero-initialises objects with static storage duration, so this is present even when the source wrote no initialiser.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticVar
impl RefUnwindSafe for StaticVar
impl Send for StaticVar
impl Sync for StaticVar
impl Unpin for StaticVar
impl UnsafeUnpin for StaticVar
impl UnwindSafe for StaticVar
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