Struct cranelift_codegen::ir::immediates::Ieee32
source · [−]#[repr(C)]pub struct Ieee32(_);
Expand description
An IEEE binary32 immediate floating point value, represented as a u32 containing the bit pattern.
All bit patterns are allowed.
Implementations
sourceimpl Ieee32
impl Ieee32
sourcepub fn fcvt_to_sint_negative_overflow<I: Into<i32>>(n: I) -> Self
pub fn fcvt_to_sint_negative_overflow<I: Into<i32>>(n: I) -> Self
Create an Ieee32
number representing the greatest negative value
not convertable from f32 to a signed integer with width n.
sourcepub fn with_float(x: f32) -> Self
pub fn with_float(x: f32) -> Self
Create a new Ieee32
representing the number x
.
Trait Implementations
sourceimpl IntoBytes for Ieee32
impl IntoBytes for Ieee32
sourcefn into_bytes(self) -> Vec<u8>
fn into_bytes(self) -> Vec<u8>
Return the little-endian byte representation of the implementing type.
sourceimpl PartialOrd<Ieee32> for Ieee32
impl PartialOrd<Ieee32> for Ieee32
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for Ieee32
impl Eq for Ieee32
impl StructuralEq for Ieee32
impl StructuralPartialEq for Ieee32
Auto Trait Implementations
impl RefUnwindSafe for Ieee32
impl Send for Ieee32
impl Sync for Ieee32
impl Unpin for Ieee32
impl UnwindSafe for Ieee32
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.