[][src]Struct wasmbin::builtins::FloatConst

pub struct FloatConst<F> {
    pub value: F,
}

A wrapper around floats that treats NaNs as equal.

This is useful in instruction context, where we don't care about general floating number rules.

Fields

value: F

Trait Implementations

impl<F: Arbitrary> Arbitrary for FloatConst<F>[src]

impl<F: Clone> Clone for FloatConst<F>[src]

impl<F: Debug> Debug for FloatConst<F>[src]

impl<F> Decode for FloatConst<F> where
    F: Decode
[src]

impl<F> Encode for FloatConst<F> where
    F: Encode
[src]

impl<F> Eq for FloatConst<F> where
    Self: PartialEq
[src]

impl Hash for FloatConst<f32>[src]

impl Hash for FloatConst<f64>[src]

impl PartialEq<FloatConst<f32>> for FloatConst<f32>[src]

impl PartialEq<FloatConst<f64>> for FloatConst<f64>[src]

impl<F> Visit for FloatConst<F> where
    Self: 'static,
    F: Visit
[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for FloatConst<F> where
    F: RefUnwindSafe

impl<F> Send for FloatConst<F> where
    F: Send

impl<F> Sync for FloatConst<F> where
    F: Sync

impl<F> Unpin for FloatConst<F> where
    F: Unpin

impl<F> UnwindSafe for FloatConst<F> where
    F: UnwindSafe

Blanket Implementations

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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> 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.