pub enum Value {
Function {
ty: TypeId,
declaration: bool,
attributes: Option<usize>,
},
Global {
ty: TypeId,
value_ty: TypeId,
init: Option<ValueId>,
constant: bool,
address_space: u32,
},
Constant(Constant),
Local,
}Expand description
A value the module numbers.
Variants§
Function
A function, defined or declared.
Fields
§
attributes: Option<usize>The attribute list it names (an index into Module::attribute_lists), where it names one.
Global
A global variable.
Fields
Constant(Constant)
A constant.
Local
A function argument or an instruction’s result.
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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