pub struct NonInfF32(/* private fields */);Expand description
An f32 guaranteed not to be infinite.
Option<Self> is niche-optimized to the size of the primitive.
Implementations§
Trait Implementations§
impl Copy for NonInfF32
Source§impl<'de> Deserialize<'de> for NonInfF32
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NonInfF32
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 PartialOrd for NonInfF32
impl PartialOrd for NonInfF32
Auto Trait Implementations§
impl Forget for NonInfF32
impl Freeze for NonInfF32
impl Move for NonInfF32
impl RefUnwindSafe for NonInfF32
impl Send for NonInfF32
impl Sync for NonInfF32
impl Unpin for NonInfF32
impl UnsafeUnpin for NonInfF32where
NonZeroU32Inner: UnsafeUnpin,
impl UnwindSafe for NonInfF32
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