Struct relp_num::Zero

source ·
pub struct Zero;
Expand description

§Zero

A ZST who’s value is always zero.

Can be used in specific situations where one knows that, for example, the right-hand side b is always zero. Operations related to b should then be compiled away because the operations on its elements are no-ops.

Trait Implementations§

source§

impl Add<&Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<&Zero> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

fn add(self, _: &Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add<Zero> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

fn add(self, _: Zero) -> Self::Output

Performs the + operation. Read more
source§

impl Add for Zero

§

type Output = Zero

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&Zero> for Rational128

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for Rational16

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for Rational32

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for Rational64

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for Rational8

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for i128

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for i16

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for i32

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for i64

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for i8

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for u128

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for u16

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for u32

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for u64

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<&Zero> for u8

source§

fn add_assign(&mut self, _: &Zero)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational128

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational16

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational32

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational64

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl AddAssign<Zero> for Rational8

source§

fn add_assign(&mut self, _: Zero)

Performs the += operation. Read more
source§

impl Clone for Zero

source§

fn clone(&self) -> Zero

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Zero

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Zero

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for Zero

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&Zero> for Rational128

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for Rational16

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for Rational32

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for Rational64

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for Rational8

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for i128

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for i16

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for i32

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for i64

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for i8

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for u128

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for u16

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for u32

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for u64

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<&Zero> for u8

source§

fn from(_: &Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational128

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational16

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational32

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational64

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for Rational8

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for i128

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for i16

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for i32

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for i64

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for i8

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for u128

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for u16

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for u32

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for u64

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl From<Zero> for u8

source§

fn from(_: Zero) -> Self

Converts to this type from the input type.
source§

impl Mul<&Zero> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for &u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<&Zero> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, _: &Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul<Zero> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

fn mul(self, _: Zero) -> Self::Output

Performs the * operation. Read more
source§

impl Mul for Zero

§

type Output = Zero

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<&Zero> for Rational128

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<&Zero> for Rational16

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<&Zero> for Rational32

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<&Zero> for Rational64

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<&Zero> for Rational8

source§

fn mul_assign(&mut self, _: &Zero)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational128

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational16

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational32

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational64

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl MulAssign<Zero> for Rational8

source§

fn mul_assign(&mut self, _: Zero)

Performs the *= operation. Read more
source§

impl Neg for Zero

§

type Output = Zero

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl Negateable for Zero

source§

fn negate(&mut self)

Negate the number, e.g. go from 1 to -1.
source§

impl Ord for Zero

source§

fn cmp(&self, _: &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 Zero

source§

fn eq(&self, _: &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 Zero

source§

fn partial_cmp(&self, _: &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 Signed for Zero

source§

fn signum(&self) -> Sign

Returns the sign of the number.
source§

fn is_positive(&self) -> bool

Whether the number is (strictly) greater than zero.
source§

fn is_negative(&self) -> bool

Whether the number is (strictly) smaller than zero.
source§

impl Sub<&Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<&Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the - operator.
source§

fn sub(self, _: &Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl Sub<Zero> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the - operator.
source§

fn sub(self, _: Zero) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign<Zero> for Rational128

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl SubAssign<Zero> for Rational16

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl SubAssign<Zero> for Rational32

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl SubAssign<Zero> for Rational64

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl SubAssign<Zero> for Rational8

source§

fn sub_assign(&mut self, _: Zero)

Performs the -= operation. Read more
source§

impl Zero for Zero

source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
source§

impl Copy for Zero

source§

impl Eq for Zero

Auto Trait Implementations§

§

impl RefUnwindSafe for Zero

§

impl Send for Zero

§

impl Sync for Zero

§

impl Unpin for Zero

§

impl UnwindSafe for Zero

Blanket Implementations§

source§

impl<T> Abs for T
where T: Neg<Output = T> + Ord + Zero,

source§

fn abs(self) -> Self

The absolute value of a number. Read more
source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.