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