pub struct Global {
pub name: String,
pub ty: MirType,
pub mutable: bool,
pub initializer: Option<Vec<u8>>,
}Expand description
Global variable declaration
Fields§
§name: StringGlobal variable name
ty: MirTypeType of the global
mutable: boolWhether this is mutable
initializer: Option<Vec<u8>>Initial value (as raw bytes)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Global
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnsafeUnpin for Global
impl UnwindSafe for Global
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