Type Alias relp_num::NonZeroRational128

source ·
pub type NonZeroRational128 = Ratio<NonZeroSign, u128, u128>;
Expand description

Non zero rational number.

Aliased Type§

struct NonZeroRational128 { /* private fields */ }

Trait Implementations§

source§

impl<'a> Add for &'a NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign for NonZeroRational128

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl<'a> Div for &'a NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign for NonZeroRational128

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl<'a> Mul for &'a NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign for NonZeroRational128

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for &NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl One for NonZeroRational128

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 NonZeroRational128

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> Sub for &'a NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for NonZeroRational128

§

type Output = Ratio<NonZeroSign, u128, u128>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign for NonZeroRational128

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Eq for NonZeroRational128