pub struct Literal {
pub value: u64,
pub type_id: TypeId,
pub symbolic: Option<SymbolicRef>,
}Expand description
A compile-time integer constant stored in a Context.
The raw value is a u64; LiteralRef::value masks it to the width
described by the literal’s TypeId.
Fields§
§value: u64Raw integer value (may be wider than the type’s size before masking).
type_id: TypeIdThe type of this constant (encodes size and semantic kind).
symbolic: Option<SymbolicRef>Optional symbolic annotation (block address, function address, string).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Literal
impl<'de> Deserialize<'de> for Literal
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 Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnsafeUnpin for Literal
impl UnwindSafe for Literal
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