pub struct CraneliftValue {
pub id: u32,
pub ty: CraneliftType,
}Expand description
An SSA value reference in Cranelift IR — corresponds to v0, v1, etc.
Fields§
§id: u32Numeric ID for this SSA value
ty: CraneliftTypeThe type of this value
Implementations§
Source§impl CraneliftValue
impl CraneliftValue
Sourcepub fn new(id: u32, ty: CraneliftType) -> Self
pub fn new(id: u32, ty: CraneliftType) -> Self
Create a new SSA value.
Trait Implementations§
Source§impl Clone for CraneliftValue
impl Clone for CraneliftValue
Source§fn clone(&self) -> CraneliftValue
fn clone(&self) -> CraneliftValue
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 moreSource§impl Debug for CraneliftValue
impl Debug for CraneliftValue
Source§impl Display for CraneliftValue
impl Display for CraneliftValue
Source§impl Hash for CraneliftValue
impl Hash for CraneliftValue
Source§impl PartialEq for CraneliftValue
impl PartialEq for CraneliftValue
impl Eq for CraneliftValue
impl StructuralPartialEq for CraneliftValue
Auto Trait Implementations§
impl Freeze for CraneliftValue
impl RefUnwindSafe for CraneliftValue
impl Send for CraneliftValue
impl Sync for CraneliftValue
impl Unpin for CraneliftValue
impl UnsafeUnpin for CraneliftValue
impl UnwindSafe for CraneliftValue
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