[][src]Struct cranelift::prelude::Ieee32

pub struct Ieee32(_);

An IEEE binary32 immediate floating point value, represented as a u32 containing the bit pattern.

All bit patterns are allowed.

Methods

impl Ieee32[src]

pub fn with_bits(x: u32) -> Ieee32[src]

Create a new Ieee32 containing the bits of x.

pub fn pow2<I>(n: I) -> Ieee32 where
    I: Into<i32>, 
[src]

Create an Ieee32 number representing 2.0^n.

pub fn fcvt_to_sint_negative_overflow<I>(n: I) -> Ieee32 where
    I: Into<i32>, 
[src]

Create an Ieee32 number representing the greatest negative value not convertable from f32 to a signed integer with width n.

pub fn neg(self) -> Ieee32[src]

Return self negated.

pub fn with_float(x: f32) -> Ieee32[src]

Create a new Ieee32 representing the number x.

pub fn bits(self) -> u32[src]

Get the bitwise representation.

Trait Implementations

impl Display for Ieee32[src]

impl StructuralEq for Ieee32[src]

impl IntoBytes for Ieee32[src]

impl Hash for Ieee32[src]

impl PartialEq<Ieee32> for Ieee32[src]

impl Clone for Ieee32[src]

impl Copy for Ieee32[src]

impl From<f32> for Ieee32[src]

impl Debug for Ieee32[src]

impl StructuralPartialEq for Ieee32[src]

impl Eq for Ieee32[src]

impl FromStr for Ieee32[src]

type Err = &'static str

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Unpin for Ieee32

impl Send for Ieee32

impl Sync for Ieee32

impl UnwindSafe for Ieee32

impl RefUnwindSafe for Ieee32

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.