pub struct NonZeroF64(/* private fields */);Expand description
An f64 guaranteed not to be zero.
Option<Self> is niche-optimized to the size of the primitive.
Implementations§
Source§impl NonZeroF64
impl NonZeroF64
Sourcepub unsafe fn new_unchecked(value: f64) -> Self
pub unsafe fn new_unchecked(value: f64) -> Self
Trait Implementations§
Source§impl Clone for NonZeroF64
impl Clone for NonZeroF64
impl Copy for NonZeroF64
Source§impl Debug for NonZeroF64
impl Debug for NonZeroF64
Source§impl<'de> Deserialize<'de> for NonZeroF64
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NonZeroF64
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 NonZeroF64
impl Display for NonZeroF64
Source§impl From<NonZeroF64> for f64
impl From<NonZeroF64> for f64
Source§fn from(value: NonZeroF64) -> Self
fn from(value: NonZeroF64) -> Self
Converts to this type from the input type.
Source§impl FromStr for NonZeroF64
impl FromStr for NonZeroF64
Source§impl LowerExp for NonZeroF64
impl LowerExp for NonZeroF64
Source§impl PartialEq for NonZeroF64
impl PartialEq for NonZeroF64
Source§impl PartialOrd for NonZeroF64
impl PartialOrd for NonZeroF64
Source§impl Serialize for NonZeroF64
Available on crate feature serde only.
impl Serialize for NonZeroF64
Available on crate feature
serde only.Source§impl TryFrom<f64> for NonZeroF64
impl TryFrom<f64> for NonZeroF64
Auto Trait Implementations§
impl Forget for NonZeroF64
impl Freeze for NonZeroF64
impl Move for NonZeroF64
impl RefUnwindSafe for NonZeroF64
impl Send for NonZeroF64
impl Sync for NonZeroF64
impl Unpin for NonZeroF64
impl UnsafeUnpin for NonZeroF64where
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for NonZeroF64
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