Struct relp_num::One

source ·
pub struct One;
Expand description

A type representing the value 1.

Can be used when a type from the MatrixProvider can only have the value 1, such as with some certain network problems, where the cost of a path might always equal 1.

This type is zero-sized.

Trait Implementations§

source§

impl Add<&One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<&One> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for i128

§

type Output = i128

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for i16

§

type Output = i16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for i32

§

type Output = i32

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for i64

§

type Output = i64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for i8

§

type Output = i8

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for u128

§

type Output = u128

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for u16

§

type Output = u16

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for u32

§

type Output = u32

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for u64

§

type Output = u64

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<One> for u8

§

type Output = u8

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl AddAssign<&One> for Rational128

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for Rational16

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for Rational32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for Rational64

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for Rational8

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for i128

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for i16

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for i32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for i64

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for i8

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for u128

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for u16

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for u32

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for u64

source§

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

Performs the += operation. Read more
source§

impl AddAssign<&One> for u8

source§

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

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational128

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational16

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational32

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational64

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl AddAssign<One> for Rational8

source§

fn add_assign(&mut self, _: One)

Performs the += operation. Read more
source§

impl Clone for One

source§

fn clone(&self) -> One

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 One

source§

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

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

impl Default for One

source§

fn default() -> Self

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

impl Display for One

source§

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

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

impl Div<&One> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for i128

§

type Output = i128

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for i16

§

type Output = i16

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for i32

§

type Output = i32

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for i64

§

type Output = i64

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for i8

§

type Output = i8

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for u128

§

type Output = u128

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for u16

§

type Output = u16

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for u32

§

type Output = u32

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for u64

§

type Output = u64

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<&One> for u8

§

type Output = u8

The resulting type after applying the / operator.
source§

fn div(self, _: &One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for i128

§

type Output = i128

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for i16

§

type Output = i16

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for i32

§

type Output = i32

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for i64

§

type Output = i64

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for i8

§

type Output = i8

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for u128

§

type Output = u128

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for u16

§

type Output = u16

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for u32

§

type Output = u32

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for u64

§

type Output = u64

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl Div<One> for u8

§

type Output = u8

The resulting type after applying the / operator.
source§

fn div(self, _: One) -> Self::Output

Performs the / operation. Read more
source§

impl DivAssign<&One> for Rational128

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<&One> for Rational16

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<&One> for Rational32

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<&One> for Rational64

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<&One> for Rational8

source§

fn div_assign(&mut self, _: &One)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational128

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational16

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational32

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational64

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl DivAssign<One> for Rational8

source§

fn div_assign(&mut self, _: One)

Performs the /= operation. Read more
source§

impl From<&One> for Rational128

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for Rational16

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for Rational32

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for Rational64

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for Rational8

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for i128

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for i16

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for i32

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for i64

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for i8

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for u128

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for u16

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for u32

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for u64

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<&One> for u8

source§

fn from(_: &One) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational128

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational16

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational32

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational64

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for Rational8

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for i128

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for i16

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for i32

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for i64

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for i8

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for u128

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for u16

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for u32

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for u64

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl From<One> for u8

source§

fn from(_: One) -> Self

Converts to this type from the input type.
source§

impl Mul<&One> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &i128

§

type Output = i128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &i16

§

type Output = i16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &i32

§

type Output = i32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &i8

§

type Output = i8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &u128

§

type Output = u128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &u16

§

type Output = u16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &u32

§

type Output = u32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &u64

§

type Output = u64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for &u8

§

type Output = u8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<&One> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for &Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for i128

§

type Output = i128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for i16

§

type Output = i16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for i32

§

type Output = i32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for i64

§

type Output = i64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for i8

§

type Output = i8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for u128

§

type Output = u128

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for u16

§

type Output = u16

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for u32

§

type Output = u32

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for u64

§

type Output = u64

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<One> for u8

§

type Output = u8

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for One

§

type Output = One

The resulting type after applying the * operator.
source§

fn mul(self, _rhs: One) -> Self::Output

Performs the * operation. Read more
source§

impl MulAssign<&One> for Rational128

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&One> for Rational16

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&One> for Rational32

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&One> for Rational64

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<&One> for Rational8

source§

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

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational128

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational16

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational32

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational64

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl MulAssign<One> for Rational8

source§

fn mul_assign(&mut self, _: One)

Performs the *= operation. Read more
source§

impl NonZero for One

source§

fn is_not_zero(&self) -> bool

Whether the value is not equal to zero. Read more
source§

impl One for One

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
where Self: PartialEq,

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

impl Ord for One

source§

fn cmp(&self, other: &One) -> 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 One

source§

fn eq(&self, other: &One) -> 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 One

source§

fn partial_cmp(&self, other: &One) -> 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 Sub<&One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<&One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational128

§

type Output = Ratio<Sign, u128, u128>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational16

§

type Output = Ratio<Sign, u16, u16>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational32

§

type Output = Ratio<Sign, u32, u32>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational64

§

type Output = Ratio<Sign, u64, u64>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<One> for Rational8

§

type Output = Ratio<Sign, u8, u8>

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl SubAssign<&One> for Rational128

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<&One> for Rational16

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<&One> for Rational32

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<&One> for Rational64

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<&One> for Rational8

source§

fn sub_assign(&mut self, _: &One)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational128

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational16

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational32

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational64

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl SubAssign<One> for Rational8

source§

fn sub_assign(&mut self, _: One)

Performs the -= operation. Read more
source§

impl Eq for One

source§

impl StructuralPartialEq for One

Auto Trait Implementations§

§

impl RefUnwindSafe for One

§

impl Send for One

§

impl Sync for One

§

impl Unpin for One

§

impl UnwindSafe for One

Blanket Implementations§

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.