pub struct AirGlobal {
pub id: ValueId,
pub obj: ObjId,
pub name: String,
pub init: Option<Constant>,
pub is_constant: bool,
pub span: Option<Span>,
pub value_type: Option<TypeId>,
}Expand description
A global variable or constant.
Fields§
§id: ValueIdValue ID for this global’s address.
obj: ObjIdObject ID for the allocation.
name: StringGlobal name.
init: Option<Constant>Initial value (if any).
is_constant: boolWhether this is a constant (immutable).
span: Option<Span>Optional source location.
value_type: Option<TypeId>Type of the global’s value (the global itself is always a pointer).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AirGlobal
impl<'de> Deserialize<'de> for AirGlobal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AirGlobal
Auto Trait Implementations§
impl Freeze for AirGlobal
impl RefUnwindSafe for AirGlobal
impl Send for AirGlobal
impl Sync for AirGlobal
impl Unpin for AirGlobal
impl UnsafeUnpin for AirGlobal
impl UnwindSafe for AirGlobal
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