pub enum CraneliftGlobalValueDef {
Symbol {
name: String,
colocated: bool,
},
IAddImm {
base: u32,
offset: i64,
},
Load {
base: u32,
offset: i32,
global_type: CraneliftType,
readonly: bool,
},
}Expand description
How a global value is defined.
Variants§
Symbol
A symbol external to the module.
IAddImm
The value of another global value plus an offset.
Load
Loaded from memory (for GOT entries, etc.).
Trait Implementations§
Source§impl Clone for CraneliftGlobalValueDef
impl Clone for CraneliftGlobalValueDef
Source§fn clone(&self) -> CraneliftGlobalValueDef
fn clone(&self) -> CraneliftGlobalValueDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CraneliftGlobalValueDef
impl RefUnwindSafe for CraneliftGlobalValueDef
impl Send for CraneliftGlobalValueDef
impl Sync for CraneliftGlobalValueDef
impl Unpin for CraneliftGlobalValueDef
impl UnsafeUnpin for CraneliftGlobalValueDef
impl UnwindSafe for CraneliftGlobalValueDef
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