[][src]Enum simple_soft_float::UnaryNaNPropagationMode

#[repr(u8)]
pub enum UnaryNaNPropagationMode {
    AlwaysCanonical,
    First,
}

Select how NaN payloads should be propagated

Variants

AlwaysCanonical

NaN payloads are always canonical

First

If the first argument is a NaN, then the result uses the first argument's payload, else the result is the canonical NaN.

Methods

impl UnaryNaNPropagationMode[src]

pub fn calculate_propagation_results(
    self,
    first_class: FloatClass
) -> UnaryNaNPropagationResults
[src]

calculate the result of NaN propagation for a floating-point operation

Trait Implementations

impl Clone for UnaryNaNPropagationMode[src]

impl Copy for UnaryNaNPropagationMode[src]

impl Debug for UnaryNaNPropagationMode[src]

impl Eq for UnaryNaNPropagationMode[src]

impl From<BinaryNaNPropagationMode> for UnaryNaNPropagationMode[src]

impl Hash for UnaryNaNPropagationMode[src]

impl PartialEq<UnaryNaNPropagationMode> for UnaryNaNPropagationMode[src]

impl StructuralEq for UnaryNaNPropagationMode[src]

impl StructuralPartialEq for UnaryNaNPropagationMode[src]

Auto Trait Implementations

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.