Type Alias relp_num::NonZeroRational32
source · pub type NonZeroRational32 = Ratio<NonZeroSign, u32, u32>;
Expand description
Non zero rational number.
Aliased Type§
struct NonZeroRational32 { /* private fields */ }
Trait Implementations§
source§impl<'a> Add for &'a NonZeroRational32
impl<'a> Add for &'a NonZeroRational32
source§impl Add for NonZeroRational32
impl Add for NonZeroRational32
source§impl AddAssign for NonZeroRational32
impl AddAssign for NonZeroRational32
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl<'a> Div for &'a NonZeroRational32
impl<'a> Div for &'a NonZeroRational32
source§impl Div for NonZeroRational32
impl Div for NonZeroRational32
source§impl DivAssign for NonZeroRational32
impl DivAssign for NonZeroRational32
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl<'a> Mul for &'a NonZeroRational32
impl<'a> Mul for &'a NonZeroRational32
source§impl Mul for NonZeroRational32
impl Mul for NonZeroRational32
source§impl MulAssign for NonZeroRational32
impl MulAssign for NonZeroRational32
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl Neg for &NonZeroRational32
impl Neg for &NonZeroRational32
source§impl Neg for NonZeroRational32
impl Neg for NonZeroRational32
source§impl One for NonZeroRational32
impl One for NonZeroRational32
source§impl Ord for NonZeroRational32
impl Ord for NonZeroRational32
source§impl PartialEq for NonZeroRational32
impl PartialEq for NonZeroRational32
source§impl PartialOrd for NonZeroRational32
impl PartialOrd for NonZeroRational32
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Sub for &'a NonZeroRational32
impl<'a> Sub for &'a NonZeroRational32
source§impl Sub for NonZeroRational32
impl Sub for NonZeroRational32
source§impl SubAssign for NonZeroRational32
impl SubAssign for NonZeroRational32
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more