pub struct NonZeroF32 { /* private fields */ }Expand description
A 32-bit floating-point number representing a NonZero value.
§Constraints
This type enforces the following constraints:
- Range:
x ≠ 0(non-zero) - Finite: Excludes NaN and ±∞
Non-zero numbers are useful for:
- Division operations (avoiding divide-by-zero)
- Multiplicative factors
- Scaling operations
§Examples
Creating a non-zero value:
#![expect(clippy::approx_constant)]
use strict_num_extended::{NonZeroF32, FloatError};
let nonzero = NonZeroF32::new(42.0)?;
assert_eq!(nonzero.get(), 42.0);Invalid value (zero):
use strict_num_extended::NonZeroF32;
let invalid = NonZeroF32::new(0.0);
assert!(invalid.is_err());Implementations§
Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn new(value: f32) -> Result<Self, FloatError>
pub fn new(value: f32) -> Result<Self, FloatError>
Creates a new NonZeroF32 value.
The value must satisfy the constraint: non-zero.
§Examples
Valid value:
#![expect(clippy::approx_constant)]
use strict_num_extended::{NonZeroF32, FloatError};
let value = NonZeroF32::new(1.0)?;
assert_eq!(value.get(), 1.0);Invalid value (zero value):
use strict_num_extended::NonZeroF32;
let invalid = NonZeroF32::new(0.0);
assert!(invalid.is_err());§Errors
Returns Err(FloatError) if the value does not satisfy the constraint.
Sourcepub const unsafe fn new_unchecked(value: f32) -> Self
pub const unsafe fn new_unchecked(value: f32) -> Self
Unsafely creates a finite floating-point number (no validation)
§Safety
Caller must ensure the value satisfies the constraint. Violating the constraint leads to undefined behavior.
Sourcepub const fn get(&self) -> f32
pub const fn get(&self) -> f32
Gets the inner value
§Example
use strict_num_extended::FinF32;
let finite = FinF32::new(2.5);
assert_eq!(finite.unwrap().get(), 2.5);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn abs(self) -> PositiveF32
pub fn abs(self) -> PositiveF32
Computes the absolute value.
The return type is automatically inferred based on the source constraint:
NonNegative/NonPositive→NonNegativeNonZero→PositiveNormalized→Normalized(reflexive)Symmetric→NormalizedFin→NonNegative
§Examples
use strict_num_extended::*;
let neg = NegativeF64::new(-5.0).unwrap();
let abs_val: PositiveF64 = neg.abs();
assert_eq!(abs_val.get(), 5.0);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn signum(self) -> SymmetricF32
pub fn signum(self) -> SymmetricF32
Computes the sign function.
Returns the sign of the number:
1.0if the number is positive0.0if the number is zero-1.0if the number is negative
The return type is automatically inferred based on the source constraint:
Positivetypes →Normalized(signum in {0, 1})Negativetypes →NegativeNormalized(signum in {-1, 0})NonZerotypes →Symmetric(signum in {-1, 1})Fin/Symmetric→Symmetric(signum in {-1, 0, 1})
§Examples
use strict_num_extended::*;
let pos = PositiveF64::new(5.0).unwrap();
let sign: NormalizedF64 = pos.signum();
assert_eq!(sign.get(), 1.0);
let neg = NegativeF64::new(-5.0).unwrap();
let sign: NegativeNormalizedF64 = neg.signum();
assert_eq!(sign.get(), -1.0);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn sin(self) -> SymmetricF32
Available on crate feature std only.
pub fn sin(self) -> SymmetricF32
std only.Computes the sine of the value.
§Mathematical Properties
For any finite real input x:
- Range: sin(x) ∈ [-1, 1]
- Output Type: Always returns
Symmetric([-1, 1]) - Defined: sin(x) is defined for all finite inputs
§Examples
use strict_num_extended::*;
let angle: FinF64 = FinF64::new(std::f64::consts::PI / 2.0).unwrap();
let sin_val: SymmetricF64 = angle.sin();
assert_eq!(sin_val.get(), 1.0);
let zero: NonNegativeF64 = NonNegativeF64::new_const(0.0);
let sin_zero: SymmetricF64 = zero.sin();
assert_eq!(sin_zero.get(), 0.0);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn cos(self) -> SymmetricF32
Available on crate feature std only.
pub fn cos(self) -> SymmetricF32
std only.Computes the cosine of the value.
§Mathematical Properties
For any finite real input x:
- Range: cos(x) ∈ [-1, 1]
- Output Type: Always returns
Symmetric([-1, 1]) - Defined: cos(x) is defined for all finite inputs
§Examples
use strict_num_extended::*;
let angle: FinF64 = FinF64::new(0.0).unwrap();
let cos_val: SymmetricF64 = angle.cos();
assert_eq!(cos_val.get(), 1.0);
let pi: FinF64 = FinF64::new(std::f64::consts::PI).unwrap();
let cos_pi: SymmetricF64 = pi.cos();
assert!((cos_pi.get() - (-1.0)).abs() < f64::EPSILON);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub fn tan(self) -> Result<FinF32, FloatError>
Available on crate feature std only.
pub fn tan(self) -> Result<FinF32, FloatError>
std only.Computes the tangent of the value.
§Mathematical Properties
For any finite real input x (excluding π/2 + kπ):
- Range: tan(x) ∈ (-∞, +∞)
- Output Type: Always returns
Fin(unbounded) - Singular Points: Undefined at π/2 + kπ (may return infinity)
§Examples
use strict_num_extended::*;
let angle: FinF64 = FinF64::new(0.0).unwrap();
let tan_val: Result<FinF64, FloatError> = angle.tan();
assert_eq!(tan_val.unwrap().get(), 0.0);
let pi_over_4: FinF64 = FinF64::new(std::f64::consts::PI / 4.0).unwrap();
let tan_45: Result<FinF64, FloatError> = pi_over_4.tan();
assert!((tan_45.unwrap().get() - 1.0).abs() < f64::EPSILON);Source§impl NonZeroF32
impl NonZeroF32
Sourcepub const fn as_f32_type(self) -> Self
pub const fn as_f32_type(self) -> Self
Creates a clone of the current F32 type instance
This is equivalent to the Clone trait but provides a descriptive name for type conversion context.
Source§impl NonZeroF32
impl NonZeroF32
Sourcepub const fn as_f64_type(self) -> NonZeroF64
pub const fn as_f64_type(self) -> NonZeroF64
Converts to the corresponding F64 type
Since F64 has a larger range than F32, this conversion is always safe in terms of range and precision.
Source§impl NonZeroF32
impl NonZeroF32
Trait Implementations§
Source§impl Add<FinF32> for NonZeroF32
impl Add<FinF32> for NonZeroF32
Source§impl Add<NegativeF32> for NonZeroF32
impl Add<NegativeF32> for NonZeroF32
Source§impl Add<NegativeNormalizedF32> for NonZeroF32
impl Add<NegativeNormalizedF32> for NonZeroF32
Source§impl Add<NonNegativeF32> for NonZeroF32
impl Add<NonNegativeF32> for NonZeroF32
Source§impl Add<NonPositiveF32> for NonZeroF32
impl Add<NonPositiveF32> for NonZeroF32
Source§impl Add<NonZeroF32> for FinF32
impl Add<NonZeroF32> for FinF32
Source§impl Add<NonZeroF32> for NegativeF32
impl Add<NonZeroF32> for NegativeF32
Source§impl Add<NonZeroF32> for NegativeNormalizedF32
impl Add<NonZeroF32> for NegativeNormalizedF32
Source§impl Add<NonZeroF32> for NonNegativeF32
impl Add<NonZeroF32> for NonNegativeF32
Source§impl Add<NonZeroF32> for NonPositiveF32
impl Add<NonZeroF32> for NonPositiveF32
Source§impl Add<NonZeroF32> for NormalizedF32
impl Add<NonZeroF32> for NormalizedF32
Source§impl Add<NonZeroF32> for PiBoundedF32
impl Add<NonZeroF32> for PiBoundedF32
Source§impl Add<NonZeroF32> for PositiveF32
impl Add<NonZeroF32> for PositiveF32
Source§impl Add<NonZeroF32> for Result<FinF32, FloatError>
impl Add<NonZeroF32> for Result<FinF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NegativeF32, FloatError>
impl Add<NonZeroF32> for Result<NegativeF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
impl Add<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NonNegativeF32, FloatError>
impl Add<NonZeroF32> for Result<NonNegativeF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NonPositiveF32, FloatError>
impl Add<NonZeroF32> for Result<NonPositiveF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NonZeroF32, FloatError>
impl Add<NonZeroF32> for Result<NonZeroF32, FloatError>
Source§impl Add<NonZeroF32> for Result<NormalizedF32, FloatError>
impl Add<NonZeroF32> for Result<NormalizedF32, FloatError>
Source§impl Add<NonZeroF32> for Result<PiBoundedF32, FloatError>
impl Add<NonZeroF32> for Result<PiBoundedF32, FloatError>
Source§impl Add<NonZeroF32> for Result<PositiveF32, FloatError>
impl Add<NonZeroF32> for Result<PositiveF32, FloatError>
Source§impl Add<NonZeroF32> for Result<SymmetricF32, FloatError>
impl Add<NonZeroF32> for Result<SymmetricF32, FloatError>
Source§impl Add<NonZeroF32> for SymmetricF32
impl Add<NonZeroF32> for SymmetricF32
Source§impl Add<NonZeroF32> for f32
impl Add<NonZeroF32> for f32
Source§impl Add<NormalizedF32> for NonZeroF32
impl Add<NormalizedF32> for NonZeroF32
Source§impl Add<Option<NegativeF32>> for NonZeroF32
impl Add<Option<NegativeF32>> for NonZeroF32
Source§impl Add<Option<NegativeNormalizedF32>> for NonZeroF32
impl Add<Option<NegativeNormalizedF32>> for NonZeroF32
Source§impl Add<Option<NonNegativeF32>> for NonZeroF32
impl Add<Option<NonNegativeF32>> for NonZeroF32
Source§impl Add<Option<NonPositiveF32>> for NonZeroF32
impl Add<Option<NonPositiveF32>> for NonZeroF32
Source§impl Add<Option<NonZeroF32>> for NonZeroF32
impl Add<Option<NonZeroF32>> for NonZeroF32
Source§impl Add<Option<NormalizedF32>> for NonZeroF32
impl Add<Option<NormalizedF32>> for NonZeroF32
Source§impl Add<Option<PiBoundedF32>> for NonZeroF32
impl Add<Option<PiBoundedF32>> for NonZeroF32
Source§impl Add<Option<PositiveF32>> for NonZeroF32
impl Add<Option<PositiveF32>> for NonZeroF32
Source§impl Add<Option<SymmetricF32>> for NonZeroF32
impl Add<Option<SymmetricF32>> for NonZeroF32
Source§impl Add<PiBoundedF32> for NonZeroF32
impl Add<PiBoundedF32> for NonZeroF32
Source§impl Add<PositiveF32> for NonZeroF32
impl Add<PositiveF32> for NonZeroF32
Source§impl Add<Result<FinF32, FloatError>> for NonZeroF32
impl Add<Result<FinF32, FloatError>> for NonZeroF32
Source§impl Add<Result<NegativeF32, FloatError>> for NonZeroF32
impl Add<Result<NegativeF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
impl Add<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<NonNegativeF32, FloatError>> for NonZeroF32
impl Add<Result<NonNegativeF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<NonPositiveF32, FloatError>> for NonZeroF32
impl Add<Result<NonPositiveF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<NonZeroF32, FloatError>> for NonZeroF32
impl Add<Result<NonZeroF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<NormalizedF32, FloatError>> for NonZeroF32
impl Add<Result<NormalizedF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<PiBoundedF32, FloatError>> for NonZeroF32
impl Add<Result<PiBoundedF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<PositiveF32, FloatError>> for NonZeroF32
impl Add<Result<PositiveF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<Result<SymmetricF32, FloatError>> for NonZeroF32
impl Add<Result<SymmetricF32, FloatError>> for NonZeroF32
Source§fn add(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
fn add(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
+ operation. Read moreSource§impl Add<SymmetricF32> for NonZeroF32
impl Add<SymmetricF32> for NonZeroF32
Source§impl Add<f32> for NonZeroF32
impl Add<f32> for NonZeroF32
Source§impl Add for NonZeroF32
impl Add for NonZeroF32
Source§impl Clone for NonZeroF32
impl Clone for NonZeroF32
Source§fn clone(&self) -> NonZeroF32
fn clone(&self) -> NonZeroF32
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NonZeroF32
impl Debug for NonZeroF32
Source§impl<'de> Deserialize<'de> for NonZeroF32where
f32: Deserialize<'de>,
Available on crate feature serde only.
impl<'de> Deserialize<'de> for NonZeroF32where
f32: Deserialize<'de>,
serde only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for NonZeroF32
impl Display for NonZeroF32
Source§impl Div<FinF32> for NonZeroF32
impl Div<FinF32> for NonZeroF32
Source§impl Div<NegativeF32> for NonZeroF32
impl Div<NegativeF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NegativeNormalizedF32> for NonZeroF32
impl Div<NegativeNormalizedF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonNegativeF32> for NonZeroF32
impl Div<NonNegativeF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonPositiveF32> for NonZeroF32
impl Div<NonPositiveF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for FinF32
impl Div<NonZeroF32> for FinF32
Source§impl Div<NonZeroF32> for NegativeF32
impl Div<NonZeroF32> for NegativeF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for NegativeNormalizedF32
impl Div<NonZeroF32> for NegativeNormalizedF32
Source§impl Div<NonZeroF32> for NonNegativeF32
impl Div<NonZeroF32> for NonNegativeF32
Source§impl Div<NonZeroF32> for NonPositiveF32
impl Div<NonZeroF32> for NonPositiveF32
Source§impl Div<NonZeroF32> for NormalizedF32
impl Div<NonZeroF32> for NormalizedF32
Source§impl Div<NonZeroF32> for PiBoundedF32
impl Div<NonZeroF32> for PiBoundedF32
Source§impl Div<NonZeroF32> for PositiveF32
impl Div<NonZeroF32> for PositiveF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for Result<FinF32, FloatError>
impl Div<NonZeroF32> for Result<FinF32, FloatError>
Source§impl Div<NonZeroF32> for Result<NegativeF32, FloatError>
impl Div<NonZeroF32> for Result<NegativeF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
impl Div<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
Source§impl Div<NonZeroF32> for Result<NonNegativeF32, FloatError>
impl Div<NonZeroF32> for Result<NonNegativeF32, FloatError>
Source§impl Div<NonZeroF32> for Result<NonPositiveF32, FloatError>
impl Div<NonZeroF32> for Result<NonPositiveF32, FloatError>
Source§impl Div<NonZeroF32> for Result<NonZeroF32, FloatError>
impl Div<NonZeroF32> for Result<NonZeroF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for Result<NormalizedF32, FloatError>
impl Div<NonZeroF32> for Result<NormalizedF32, FloatError>
Source§impl Div<NonZeroF32> for Result<PiBoundedF32, FloatError>
impl Div<NonZeroF32> for Result<PiBoundedF32, FloatError>
Source§impl Div<NonZeroF32> for Result<PositiveF32, FloatError>
impl Div<NonZeroF32> for Result<PositiveF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<NonZeroF32> for Result<SymmetricF32, FloatError>
impl Div<NonZeroF32> for Result<SymmetricF32, FloatError>
Source§impl Div<NonZeroF32> for SymmetricF32
impl Div<NonZeroF32> for SymmetricF32
Source§impl Div<NonZeroF32> for f32
impl Div<NonZeroF32> for f32
Source§impl Div<NormalizedF32> for NonZeroF32
impl Div<NormalizedF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NegativeF32>> for NonZeroF32
impl Div<Option<NegativeF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NegativeNormalizedF32>> for NonZeroF32
impl Div<Option<NegativeNormalizedF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NonNegativeF32>> for NonZeroF32
impl Div<Option<NonNegativeF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NonPositiveF32>> for NonZeroF32
impl Div<Option<NonPositiveF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NonZeroF32>> for NonZeroF32
impl Div<Option<NonZeroF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<NormalizedF32>> for NonZeroF32
impl Div<Option<NormalizedF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<PiBoundedF32>> for NonZeroF32
impl Div<Option<PiBoundedF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<PositiveF32>> for NonZeroF32
impl Div<Option<PositiveF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Option<SymmetricF32>> for NonZeroF32
impl Div<Option<SymmetricF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<PiBoundedF32> for NonZeroF32
impl Div<PiBoundedF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<PositiveF32> for NonZeroF32
impl Div<PositiveF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Result<FinF32, FloatError>> for NonZeroF32
impl Div<Result<FinF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<Result<NegativeF32, FloatError>> for NonZeroF32
impl Div<Result<NegativeF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
impl Div<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<NonNegativeF32, FloatError>> for NonZeroF32
impl Div<Result<NonNegativeF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<NonPositiveF32, FloatError>> for NonZeroF32
impl Div<Result<NonPositiveF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<NonZeroF32, FloatError>> for NonZeroF32
impl Div<Result<NonZeroF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<NormalizedF32, FloatError>> for NonZeroF32
impl Div<Result<NormalizedF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<PiBoundedF32, FloatError>> for NonZeroF32
impl Div<Result<PiBoundedF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<PositiveF32, FloatError>> for NonZeroF32
impl Div<Result<PositiveF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<Result<SymmetricF32, FloatError>> for NonZeroF32
impl Div<Result<SymmetricF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§fn div(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
fn div(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
/ operation. Read moreSource§impl Div<SymmetricF32> for NonZeroF32
impl Div<SymmetricF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl Div<f32> for NonZeroF32
impl Div<f32> for NonZeroF32
Source§impl Div for NonZeroF32
impl Div for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
/ operator.Source§impl FiniteFloat for NonZeroF32
impl FiniteFloat for NonZeroF32
Source§impl From<NegativeF32> for NonZeroF32
impl From<NegativeF32> for NonZeroF32
Source§fn from(value: NegativeF32) -> Self
fn from(value: NegativeF32) -> Self
Source§impl From<NonZeroF32> for FinF32
impl From<NonZeroF32> for FinF32
Source§fn from(value: NonZeroF32) -> Self
fn from(value: NonZeroF32) -> Self
Source§impl From<NonZeroF32> for NonZeroF64
impl From<NonZeroF32> for NonZeroF64
Source§fn from(value: NonZeroF32) -> Self
fn from(value: NonZeroF32) -> Self
Source§impl From<NonZeroF32> for f32
impl From<NonZeroF32> for f32
Source§fn from(value: NonZeroF32) -> Self
fn from(value: NonZeroF32) -> Self
Source§impl From<PositiveF32> for NonZeroF32
impl From<PositiveF32> for NonZeroF32
Source§fn from(value: PositiveF32) -> Self
fn from(value: PositiveF32) -> Self
Source§impl FromStr for NonZeroF32
impl FromStr for NonZeroF32
Source§impl Mul<FinF32> for NonZeroF32
impl Mul<FinF32> for NonZeroF32
Source§impl Mul<NegativeF32> for NonZeroF32
impl Mul<NegativeF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NegativeNormalizedF32> for NonZeroF32
impl Mul<NegativeNormalizedF32> for NonZeroF32
Source§impl Mul<NonNegativeF32> for NonZeroF32
impl Mul<NonNegativeF32> for NonZeroF32
Source§impl Mul<NonPositiveF32> for NonZeroF32
impl Mul<NonPositiveF32> for NonZeroF32
Source§impl Mul<NonZeroF32> for FinF32
impl Mul<NonZeroF32> for FinF32
Source§impl Mul<NonZeroF32> for NegativeF32
impl Mul<NonZeroF32> for NegativeF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NonZeroF32> for NegativeNormalizedF32
impl Mul<NonZeroF32> for NegativeNormalizedF32
Source§impl Mul<NonZeroF32> for NonNegativeF32
impl Mul<NonZeroF32> for NonNegativeF32
Source§impl Mul<NonZeroF32> for NonPositiveF32
impl Mul<NonZeroF32> for NonPositiveF32
Source§impl Mul<NonZeroF32> for NormalizedF32
impl Mul<NonZeroF32> for NormalizedF32
Source§impl Mul<NonZeroF32> for PiBoundedF32
impl Mul<NonZeroF32> for PiBoundedF32
Source§impl Mul<NonZeroF32> for PositiveF32
impl Mul<NonZeroF32> for PositiveF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NonZeroF32> for Result<FinF32, FloatError>
impl Mul<NonZeroF32> for Result<FinF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<NegativeF32, FloatError>
impl Mul<NonZeroF32> for Result<NegativeF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
impl Mul<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<NonNegativeF32, FloatError>
impl Mul<NonZeroF32> for Result<NonNegativeF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<NonPositiveF32, FloatError>
impl Mul<NonZeroF32> for Result<NonPositiveF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<NonZeroF32, FloatError>
impl Mul<NonZeroF32> for Result<NonZeroF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NonZeroF32> for Result<NormalizedF32, FloatError>
impl Mul<NonZeroF32> for Result<NormalizedF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<PiBoundedF32, FloatError>
impl Mul<NonZeroF32> for Result<PiBoundedF32, FloatError>
Source§impl Mul<NonZeroF32> for Result<PositiveF32, FloatError>
impl Mul<NonZeroF32> for Result<PositiveF32, FloatError>
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<NonZeroF32> for Result<SymmetricF32, FloatError>
impl Mul<NonZeroF32> for Result<SymmetricF32, FloatError>
Source§impl Mul<NonZeroF32> for SymmetricF32
impl Mul<NonZeroF32> for SymmetricF32
Source§impl Mul<NonZeroF32> for f32
impl Mul<NonZeroF32> for f32
Source§impl Mul<NormalizedF32> for NonZeroF32
impl Mul<NormalizedF32> for NonZeroF32
Source§impl Mul<Option<NegativeF32>> for NonZeroF32
impl Mul<Option<NegativeF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<Option<NegativeNormalizedF32>> for NonZeroF32
impl Mul<Option<NegativeNormalizedF32>> for NonZeroF32
Source§impl Mul<Option<NonNegativeF32>> for NonZeroF32
impl Mul<Option<NonNegativeF32>> for NonZeroF32
Source§impl Mul<Option<NonPositiveF32>> for NonZeroF32
impl Mul<Option<NonPositiveF32>> for NonZeroF32
Source§impl Mul<Option<NonZeroF32>> for NonZeroF32
impl Mul<Option<NonZeroF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<Option<NormalizedF32>> for NonZeroF32
impl Mul<Option<NormalizedF32>> for NonZeroF32
Source§impl Mul<Option<PiBoundedF32>> for NonZeroF32
impl Mul<Option<PiBoundedF32>> for NonZeroF32
Source§impl Mul<Option<PositiveF32>> for NonZeroF32
impl Mul<Option<PositiveF32>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<Option<SymmetricF32>> for NonZeroF32
impl Mul<Option<SymmetricF32>> for NonZeroF32
Source§impl Mul<PiBoundedF32> for NonZeroF32
impl Mul<PiBoundedF32> for NonZeroF32
Source§impl Mul<PositiveF32> for NonZeroF32
impl Mul<PositiveF32> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Mul<Result<FinF32, FloatError>> for NonZeroF32
impl Mul<Result<FinF32, FloatError>> for NonZeroF32
Source§impl Mul<Result<NegativeF32, FloatError>> for NonZeroF32
impl Mul<Result<NegativeF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§fn mul(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
impl Mul<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<NonNegativeF32, FloatError>> for NonZeroF32
impl Mul<Result<NonNegativeF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<NonPositiveF32, FloatError>> for NonZeroF32
impl Mul<Result<NonPositiveF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<NonZeroF32, FloatError>> for NonZeroF32
impl Mul<Result<NonZeroF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§fn mul(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<NormalizedF32, FloatError>> for NonZeroF32
impl Mul<Result<NormalizedF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<PiBoundedF32, FloatError>> for NonZeroF32
impl Mul<Result<PiBoundedF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<PositiveF32, FloatError>> for NonZeroF32
impl Mul<Result<PositiveF32, FloatError>> for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§fn mul(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<Result<SymmetricF32, FloatError>> for NonZeroF32
impl Mul<Result<SymmetricF32, FloatError>> for NonZeroF32
Source§fn mul(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
fn mul(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
* operation. Read moreSource§impl Mul<SymmetricF32> for NonZeroF32
impl Mul<SymmetricF32> for NonZeroF32
Source§impl Mul<f32> for NonZeroF32
impl Mul<f32> for NonZeroF32
Source§impl Mul for NonZeroF32
impl Mul for NonZeroF32
Source§type Output = Result<NonZeroF32, FloatError>
type Output = Result<NonZeroF32, FloatError>
* operator.Source§impl Neg for NonZeroF32
impl Neg for NonZeroF32
Source§impl Ord for NonZeroF32
impl Ord for NonZeroF32
Source§impl PartialEq for NonZeroF32
impl PartialEq for NonZeroF32
Source§impl PartialOrd for NonZeroF32
impl PartialOrd for NonZeroF32
Source§impl Serialize for NonZeroF32
Available on crate feature serde only.
impl Serialize for NonZeroF32
serde only.Source§impl Sub<FinF32> for NonZeroF32
impl Sub<FinF32> for NonZeroF32
Source§impl Sub<NegativeF32> for NonZeroF32
impl Sub<NegativeF32> for NonZeroF32
Source§impl Sub<NegativeNormalizedF32> for NonZeroF32
impl Sub<NegativeNormalizedF32> for NonZeroF32
Source§impl Sub<NonNegativeF32> for NonZeroF32
impl Sub<NonNegativeF32> for NonZeroF32
Source§impl Sub<NonPositiveF32> for NonZeroF32
impl Sub<NonPositiveF32> for NonZeroF32
Source§impl Sub<NonZeroF32> for FinF32
impl Sub<NonZeroF32> for FinF32
Source§impl Sub<NonZeroF32> for NegativeF32
impl Sub<NonZeroF32> for NegativeF32
Source§impl Sub<NonZeroF32> for NegativeNormalizedF32
impl Sub<NonZeroF32> for NegativeNormalizedF32
Source§impl Sub<NonZeroF32> for NonNegativeF32
impl Sub<NonZeroF32> for NonNegativeF32
Source§impl Sub<NonZeroF32> for NonPositiveF32
impl Sub<NonZeroF32> for NonPositiveF32
Source§impl Sub<NonZeroF32> for NormalizedF32
impl Sub<NonZeroF32> for NormalizedF32
Source§impl Sub<NonZeroF32> for PiBoundedF32
impl Sub<NonZeroF32> for PiBoundedF32
Source§impl Sub<NonZeroF32> for PositiveF32
impl Sub<NonZeroF32> for PositiveF32
Source§impl Sub<NonZeroF32> for Result<FinF32, FloatError>
impl Sub<NonZeroF32> for Result<FinF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NegativeF32, FloatError>
impl Sub<NonZeroF32> for Result<NegativeF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
impl Sub<NonZeroF32> for Result<NegativeNormalizedF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NonNegativeF32, FloatError>
impl Sub<NonZeroF32> for Result<NonNegativeF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NonPositiveF32, FloatError>
impl Sub<NonZeroF32> for Result<NonPositiveF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NonZeroF32, FloatError>
impl Sub<NonZeroF32> for Result<NonZeroF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<NormalizedF32, FloatError>
impl Sub<NonZeroF32> for Result<NormalizedF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<PiBoundedF32, FloatError>
impl Sub<NonZeroF32> for Result<PiBoundedF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<PositiveF32, FloatError>
impl Sub<NonZeroF32> for Result<PositiveF32, FloatError>
Source§impl Sub<NonZeroF32> for Result<SymmetricF32, FloatError>
impl Sub<NonZeroF32> for Result<SymmetricF32, FloatError>
Source§impl Sub<NonZeroF32> for SymmetricF32
impl Sub<NonZeroF32> for SymmetricF32
Source§impl Sub<NonZeroF32> for f32
impl Sub<NonZeroF32> for f32
Source§impl Sub<NormalizedF32> for NonZeroF32
impl Sub<NormalizedF32> for NonZeroF32
Source§impl Sub<Option<NegativeF32>> for NonZeroF32
impl Sub<Option<NegativeF32>> for NonZeroF32
Source§impl Sub<Option<NegativeNormalizedF32>> for NonZeroF32
impl Sub<Option<NegativeNormalizedF32>> for NonZeroF32
Source§impl Sub<Option<NonNegativeF32>> for NonZeroF32
impl Sub<Option<NonNegativeF32>> for NonZeroF32
Source§impl Sub<Option<NonPositiveF32>> for NonZeroF32
impl Sub<Option<NonPositiveF32>> for NonZeroF32
Source§impl Sub<Option<NonZeroF32>> for NonZeroF32
impl Sub<Option<NonZeroF32>> for NonZeroF32
Source§impl Sub<Option<NormalizedF32>> for NonZeroF32
impl Sub<Option<NormalizedF32>> for NonZeroF32
Source§impl Sub<Option<PiBoundedF32>> for NonZeroF32
impl Sub<Option<PiBoundedF32>> for NonZeroF32
Source§impl Sub<Option<PositiveF32>> for NonZeroF32
impl Sub<Option<PositiveF32>> for NonZeroF32
Source§impl Sub<Option<SymmetricF32>> for NonZeroF32
impl Sub<Option<SymmetricF32>> for NonZeroF32
Source§impl Sub<PiBoundedF32> for NonZeroF32
impl Sub<PiBoundedF32> for NonZeroF32
Source§impl Sub<PositiveF32> for NonZeroF32
impl Sub<PositiveF32> for NonZeroF32
Source§impl Sub<Result<FinF32, FloatError>> for NonZeroF32
impl Sub<Result<FinF32, FloatError>> for NonZeroF32
Source§impl Sub<Result<NegativeF32, FloatError>> for NonZeroF32
impl Sub<Result<NegativeF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NegativeF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
impl Sub<Result<NegativeNormalizedF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NegativeNormalizedF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<NonNegativeF32, FloatError>> for NonZeroF32
impl Sub<Result<NonNegativeF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NonNegativeF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<NonPositiveF32, FloatError>> for NonZeroF32
impl Sub<Result<NonPositiveF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NonPositiveF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<NonZeroF32, FloatError>> for NonZeroF32
impl Sub<Result<NonZeroF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NonZeroF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<NormalizedF32, FloatError>> for NonZeroF32
impl Sub<Result<NormalizedF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<NormalizedF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<PiBoundedF32, FloatError>> for NonZeroF32
impl Sub<Result<PiBoundedF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<PiBoundedF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<PositiveF32, FloatError>> for NonZeroF32
impl Sub<Result<PositiveF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<PositiveF32, FloatError>) -> Self::Output
- operation. Read moreSource§impl Sub<Result<SymmetricF32, FloatError>> for NonZeroF32
impl Sub<Result<SymmetricF32, FloatError>> for NonZeroF32
Source§fn sub(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
fn sub(self, rhs: Result<SymmetricF32, FloatError>) -> Self::Output
- operation. Read more