pub struct NonSubnormalF32(/* private fields */);Expand description
An f32 guaranteed not to be subnormal.
Option<Self> is niche-optimized to the size of the primitive.
Implementations§
Source§impl NonSubnormalF32
impl NonSubnormalF32
Sourcepub unsafe fn new_unchecked(value: f32) -> Self
pub unsafe fn new_unchecked(value: f32) -> Self
Trait Implementations§
Source§impl Clone for NonSubnormalF32
impl Clone for NonSubnormalF32
impl Copy for NonSubnormalF32
Source§impl Debug for NonSubnormalF32
impl Debug for NonSubnormalF32
Source§impl<'de> Deserialize<'de> for NonSubnormalF32
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NonSubnormalF32
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NonSubnormalF32
impl Display for NonSubnormalF32
Source§impl From<NonSubnormalF32> for f32
impl From<NonSubnormalF32> for f32
Source§fn from(value: NonSubnormalF32) -> Self
fn from(value: NonSubnormalF32) -> Self
Converts to this type from the input type.
Source§impl FromStr for NonSubnormalF32
impl FromStr for NonSubnormalF32
Source§impl LowerExp for NonSubnormalF32
impl LowerExp for NonSubnormalF32
Source§impl PartialEq for NonSubnormalF32
impl PartialEq for NonSubnormalF32
Source§impl PartialOrd for NonSubnormalF32
impl PartialOrd for NonSubnormalF32
Source§impl Serialize for NonSubnormalF32
Available on crate feature serde only.
impl Serialize for NonSubnormalF32
Available on crate feature
serde only.Source§impl TryFrom<f32> for NonSubnormalF32
impl TryFrom<f32> for NonSubnormalF32
Auto Trait Implementations§
impl Forget for NonSubnormalF32
impl Freeze for NonSubnormalF32
impl Move for NonSubnormalF32
impl RefUnwindSafe for NonSubnormalF32
impl Send for NonSubnormalF32
impl Sync for NonSubnormalF32
impl Unpin for NonSubnormalF32
impl UnsafeUnpin for NonSubnormalF32where
NonZeroU32Inner: UnsafeUnpin,
impl UnwindSafe for NonSubnormalF32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more