Type Alias relp_num::NonZeroRational8
source · pub type NonZeroRational8 = Ratio<NonZeroSign, u8, u8>;
Expand description
Non zero rational number.
Aliased Type§
struct NonZeroRational8 { /* private fields */ }
Trait Implementations§
source§impl<'a> Add for &'a NonZeroRational8
impl<'a> Add for &'a NonZeroRational8
source§impl Add for NonZeroRational8
impl Add for NonZeroRational8
source§impl AddAssign for NonZeroRational8
impl AddAssign for NonZeroRational8
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 NonZeroRational8
impl<'a> Div for &'a NonZeroRational8
source§impl Div for NonZeroRational8
impl Div for NonZeroRational8
source§impl DivAssign for NonZeroRational8
impl DivAssign for NonZeroRational8
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 NonZeroRational8
impl<'a> Mul for &'a NonZeroRational8
source§impl Mul for NonZeroRational8
impl Mul for NonZeroRational8
source§impl MulAssign for NonZeroRational8
impl MulAssign for NonZeroRational8
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl Neg for &NonZeroRational8
impl Neg for &NonZeroRational8
source§impl Neg for NonZeroRational8
impl Neg for NonZeroRational8
source§impl One for NonZeroRational8
impl One for NonZeroRational8
source§impl Ord for NonZeroRational8
impl Ord for NonZeroRational8
source§impl PartialEq for NonZeroRational8
impl PartialEq for NonZeroRational8
source§impl PartialOrd for NonZeroRational8
impl PartialOrd for NonZeroRational8
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 NonZeroRational8
impl<'a> Sub for &'a NonZeroRational8
source§impl Sub for NonZeroRational8
impl Sub for NonZeroRational8
source§impl SubAssign for NonZeroRational8
impl SubAssign for NonZeroRational8
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more