pub struct Local {
pub attrs: Vec<Attribute>,
pub cfgs: Vec<Attribute>,
pub shared: bool,
pub ty: Box<Type>,
pub expr: Box<Expr>,
/* private fields */
}
Expand description
A static mut
variable local to and owned by a context
Fields§
§attrs: Vec<Attribute>
Attributes like #[link_section]
cfgs: Vec<Attribute>
#[cfg]
attributes like #[cfg(debug_assertions)]
Whether this contains the #[shared]
attribute or not
NOTE: Always false
in single core mode
ty: Box<Type>
Type
expr: Box<Expr>
Initial value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl !Send for Local
impl !Sync for Local
impl Unpin for Local
impl UnwindSafe for Local
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