NonZeroRationalUsize

Type Alias NonZeroRationalUsize 

Source
pub type NonZeroRationalUsize = Ratio<NonZeroSign, usize, usize>;
Expand description

Non zero rational number.

Aliased Type§

pub struct NonZeroRationalUsize { /* private fields */ }

Trait Implementations§

Source§

impl<'a> Add for &'a NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign for NonZeroRationalUsize

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<'a> Div for &'a NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign for NonZeroRationalUsize

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl<'a> Mul for &'a NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign for NonZeroRationalUsize

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Neg for &NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl One for NonZeroRationalUsize

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl PartialEq for NonZeroRationalUsize

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Sub for &'a NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for NonZeroRationalUsize

Source§

type Output = Ratio<NonZeroSign, usize, usize>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign for NonZeroRationalUsize

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Eq for NonZeroRationalUsize