Struct cranelift_codegen::ir::entities::Immediate
source · pub struct Immediate(/* private fields */);
Expand description
An opaque reference to an immediate.
Some immediates (e.g. SIMD shuffle masks) are too large to store in the
InstructionData
struct and therefore must be
tracked separately in DataFlowGraph::immediates
. Immediate
provides a way to reference values stored there.
While the order is stable, it is arbitrary.
Implementations§
Trait Implementations§
source§impl Ord for Immediate
impl Ord for Immediate
source§impl PartialEq<Immediate> for Immediate
impl PartialEq<Immediate> for Immediate
source§impl PartialOrd<Immediate> for Immediate
impl PartialOrd<Immediate> for Immediate
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ReservedValue for Immediate
impl ReservedValue for Immediate
source§fn reserved_value() -> Immediate
fn reserved_value() -> Immediate
Create an instance of the reserved value.
source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
Checks whether value is the reserved one.
impl Copy for Immediate
impl Eq for Immediate
impl StructuralEq for Immediate
impl StructuralPartialEq for Immediate
Auto Trait Implementations§
impl RefUnwindSafe for Immediate
impl Send for Immediate
impl Sync for Immediate
impl Unpin for Immediate
impl UnwindSafe for Immediate
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.