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

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign for NonZeroRational32

source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
source§

impl<'a> Div for &'a NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign for NonZeroRational32

source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
source§

impl<'a> Mul for &'a NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign for NonZeroRational32

source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
source§

impl Neg for &NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Neg for NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl One for NonZeroRational32

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 Ord for NonZeroRational32

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for NonZeroRational32

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 PartialOrd for NonZeroRational32

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<'a> Sub for &'a NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for NonZeroRational32

§

type Output = Ratio<NonZeroSign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign for NonZeroRational32

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Eq for NonZeroRational32