Type Alias O32

Source
pub type O32 = OrderedFloat<f32>;
Expand description

Ordered f32 inclusive NaN implementing Float.

Aliased Type§

struct O32(pub f32);

Fields§

§0: f32

Trait Implementations§

Source§

impl MaybeNan for O32

Source§

type NotNan = NotNan<f32>

A type that is guaranteed not to be a NaN value.
Source§

fn is_nan(&self) -> bool

Returns true if the value is a NaN value.
Source§

fn try_as_not_nan(&self) -> Option<&N32>

Tries to convert the value to NotNan. Read more
Source§

fn from_not_nan(value: N32) -> O32

Converts the value. Read more
Source§

fn from_not_nan_opt(value: Option<N32>) -> O32

Converts the value. Read more
Source§

fn from_not_nan_ref_opt(value: Option<&N32>) -> &O32

Converts the value. Read more
Source§

fn remove_nan_mut(view: ArrayViewMut1<'_, O32>) -> ArrayViewMut1<'_, N32>

Returns a view with the NaN values removed. Read more