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
impl Add<&One> for Rational128
source§impl Add<&One> for Rational16
impl Add<&One> for Rational16
source§impl Add<&One> for Rational32
impl Add<&One> for Rational32
source§impl Add<&One> for Rational64
impl Add<&One> for Rational64
source§impl Add<One> for Rational128
impl Add<One> for Rational128
source§impl Add<One> for Rational16
impl Add<One> for Rational16
source§impl Add<One> for Rational32
impl Add<One> for Rational32
source§impl Add<One> for Rational64
impl Add<One> for Rational64
source§impl AddAssign<&One> for Rational128
impl AddAssign<&One> for Rational128
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for Rational16
impl AddAssign<&One> for Rational16
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for Rational32
impl AddAssign<&One> for Rational32
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for Rational64
impl AddAssign<&One> for Rational64
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for Rational8
impl AddAssign<&One> for Rational8
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for i128
impl AddAssign<&One> for i128
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for i16
impl AddAssign<&One> for i16
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for i32
impl AddAssign<&One> for i32
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for i64
impl AddAssign<&One> for i64
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for i8
impl AddAssign<&One> for i8
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for u128
impl AddAssign<&One> for u128
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for u16
impl AddAssign<&One> for u16
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for u32
impl AddAssign<&One> for u32
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for u64
impl AddAssign<&One> for u64
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<&One> for u8
impl AddAssign<&One> for u8
source§fn add_assign(&mut self, _: &One)
fn add_assign(&mut self, _: &One)
Performs the
+=
operation. Read moresource§impl AddAssign<One> for Rational128
impl AddAssign<One> for Rational128
source§fn add_assign(&mut self, _: One)
fn add_assign(&mut self, _: One)
Performs the
+=
operation. Read moresource§impl AddAssign<One> for Rational16
impl AddAssign<One> for Rational16
source§fn add_assign(&mut self, _: One)
fn add_assign(&mut self, _: One)
Performs the
+=
operation. Read moresource§impl AddAssign<One> for Rational32
impl AddAssign<One> for Rational32
source§fn add_assign(&mut self, _: One)
fn add_assign(&mut self, _: One)
Performs the
+=
operation. Read moresource§impl AddAssign<One> for Rational64
impl AddAssign<One> for Rational64
source§fn add_assign(&mut self, _: One)
fn add_assign(&mut self, _: One)
Performs the
+=
operation. Read moresource§impl AddAssign<One> for Rational8
impl AddAssign<One> for Rational8
source§fn add_assign(&mut self, _: One)
fn add_assign(&mut self, _: One)
Performs the
+=
operation. Read moresource§impl Div<&One> for &Rational128
impl Div<&One> for &Rational128
source§impl Div<&One> for &Rational16
impl Div<&One> for &Rational16
source§impl Div<&One> for &Rational32
impl Div<&One> for &Rational32
source§impl Div<&One> for &Rational64
impl Div<&One> for &Rational64
source§impl Div<&One> for Rational128
impl Div<&One> for Rational128
source§impl Div<&One> for Rational16
impl Div<&One> for Rational16
source§impl Div<&One> for Rational32
impl Div<&One> for Rational32
source§impl Div<&One> for Rational64
impl Div<&One> for Rational64
source§impl Div<One> for &Rational128
impl Div<One> for &Rational128
source§impl Div<One> for &Rational16
impl Div<One> for &Rational16
source§impl Div<One> for &Rational32
impl Div<One> for &Rational32
source§impl Div<One> for &Rational64
impl Div<One> for &Rational64
source§impl Div<One> for Rational128
impl Div<One> for Rational128
source§impl Div<One> for Rational16
impl Div<One> for Rational16
source§impl Div<One> for Rational32
impl Div<One> for Rational32
source§impl Div<One> for Rational64
impl Div<One> for Rational64
source§impl DivAssign<&One> for Rational128
impl DivAssign<&One> for Rational128
source§fn div_assign(&mut self, _: &One)
fn div_assign(&mut self, _: &One)
Performs the
/=
operation. Read moresource§impl DivAssign<&One> for Rational16
impl DivAssign<&One> for Rational16
source§fn div_assign(&mut self, _: &One)
fn div_assign(&mut self, _: &One)
Performs the
/=
operation. Read moresource§impl DivAssign<&One> for Rational32
impl DivAssign<&One> for Rational32
source§fn div_assign(&mut self, _: &One)
fn div_assign(&mut self, _: &One)
Performs the
/=
operation. Read moresource§impl DivAssign<&One> for Rational64
impl DivAssign<&One> for Rational64
source§fn div_assign(&mut self, _: &One)
fn div_assign(&mut self, _: &One)
Performs the
/=
operation. Read moresource§impl DivAssign<&One> for Rational8
impl DivAssign<&One> for Rational8
source§fn div_assign(&mut self, _: &One)
fn div_assign(&mut self, _: &One)
Performs the
/=
operation. Read moresource§impl DivAssign<One> for Rational128
impl DivAssign<One> for Rational128
source§fn div_assign(&mut self, _: One)
fn div_assign(&mut self, _: One)
Performs the
/=
operation. Read moresource§impl DivAssign<One> for Rational16
impl DivAssign<One> for Rational16
source§fn div_assign(&mut self, _: One)
fn div_assign(&mut self, _: One)
Performs the
/=
operation. Read moresource§impl DivAssign<One> for Rational32
impl DivAssign<One> for Rational32
source§fn div_assign(&mut self, _: One)
fn div_assign(&mut self, _: One)
Performs the
/=
operation. Read moresource§impl DivAssign<One> for Rational64
impl DivAssign<One> for Rational64
source§fn div_assign(&mut self, _: One)
fn div_assign(&mut self, _: One)
Performs the
/=
operation. Read moresource§impl DivAssign<One> for Rational8
impl DivAssign<One> for Rational8
source§fn div_assign(&mut self, _: One)
fn div_assign(&mut self, _: One)
Performs the
/=
operation. Read moresource§impl From<&One> for Rational128
impl From<&One> for Rational128
source§impl From<&One> for Rational16
impl From<&One> for Rational16
source§impl From<&One> for Rational32
impl From<&One> for Rational32
source§impl From<&One> for Rational64
impl From<&One> for Rational64
source§impl From<One> for Rational128
impl From<One> for Rational128
source§impl From<One> for Rational16
impl From<One> for Rational16
source§impl From<One> for Rational32
impl From<One> for Rational32
source§impl From<One> for Rational64
impl From<One> for Rational64
source§impl Mul<&One> for &Rational128
impl Mul<&One> for &Rational128
source§impl Mul<&One> for &Rational16
impl Mul<&One> for &Rational16
source§impl Mul<&One> for &Rational32
impl Mul<&One> for &Rational32
source§impl Mul<&One> for &Rational64
impl Mul<&One> for &Rational64
source§impl Mul<&One> for Rational128
impl Mul<&One> for Rational128
source§impl Mul<&One> for Rational16
impl Mul<&One> for Rational16
source§impl Mul<&One> for Rational32
impl Mul<&One> for Rational32
source§impl Mul<&One> for Rational64
impl Mul<&One> for Rational64
source§impl Mul<One> for &Rational128
impl Mul<One> for &Rational128
source§impl Mul<One> for &Rational16
impl Mul<One> for &Rational16
source§impl Mul<One> for &Rational32
impl Mul<One> for &Rational32
source§impl Mul<One> for &Rational64
impl Mul<One> for &Rational64
source§impl Mul<One> for Rational128
impl Mul<One> for Rational128
source§impl Mul<One> for Rational16
impl Mul<One> for Rational16
source§impl Mul<One> for Rational32
impl Mul<One> for Rational32
source§impl Mul<One> for Rational64
impl Mul<One> for Rational64
source§impl MulAssign<&One> for Rational128
impl MulAssign<&One> for Rational128
source§fn mul_assign(&mut self, _: &One)
fn mul_assign(&mut self, _: &One)
Performs the
*=
operation. Read moresource§impl MulAssign<&One> for Rational16
impl MulAssign<&One> for Rational16
source§fn mul_assign(&mut self, _: &One)
fn mul_assign(&mut self, _: &One)
Performs the
*=
operation. Read moresource§impl MulAssign<&One> for Rational32
impl MulAssign<&One> for Rational32
source§fn mul_assign(&mut self, _: &One)
fn mul_assign(&mut self, _: &One)
Performs the
*=
operation. Read moresource§impl MulAssign<&One> for Rational64
impl MulAssign<&One> for Rational64
source§fn mul_assign(&mut self, _: &One)
fn mul_assign(&mut self, _: &One)
Performs the
*=
operation. Read moresource§impl MulAssign<&One> for Rational8
impl MulAssign<&One> for Rational8
source§fn mul_assign(&mut self, _: &One)
fn mul_assign(&mut self, _: &One)
Performs the
*=
operation. Read moresource§impl MulAssign<One> for Rational128
impl MulAssign<One> for Rational128
source§fn mul_assign(&mut self, _: One)
fn mul_assign(&mut self, _: One)
Performs the
*=
operation. Read moresource§impl MulAssign<One> for Rational16
impl MulAssign<One> for Rational16
source§fn mul_assign(&mut self, _: One)
fn mul_assign(&mut self, _: One)
Performs the
*=
operation. Read moresource§impl MulAssign<One> for Rational32
impl MulAssign<One> for Rational32
source§fn mul_assign(&mut self, _: One)
fn mul_assign(&mut self, _: One)
Performs the
*=
operation. Read moresource§impl MulAssign<One> for Rational64
impl MulAssign<One> for Rational64
source§fn mul_assign(&mut self, _: One)
fn mul_assign(&mut self, _: One)
Performs the
*=
operation. Read moresource§impl MulAssign<One> for Rational8
impl MulAssign<One> for Rational8
source§fn mul_assign(&mut self, _: One)
fn mul_assign(&mut self, _: One)
Performs the
*=
operation. Read moresource§impl NonZero for One
impl NonZero for One
source§fn is_not_zero(&self) -> bool
fn is_not_zero(&self) -> bool
Whether the value is not equal to zero. Read more
source§impl Ord for One
impl Ord for One
source§impl PartialOrd for One
impl PartialOrd for One
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl Sub<&One> for Rational128
impl Sub<&One> for Rational128
source§impl Sub<&One> for Rational16
impl Sub<&One> for Rational16
source§impl Sub<&One> for Rational32
impl Sub<&One> for Rational32
source§impl Sub<&One> for Rational64
impl Sub<&One> for Rational64
source§impl Sub<One> for Rational128
impl Sub<One> for Rational128
source§impl Sub<One> for Rational16
impl Sub<One> for Rational16
source§impl Sub<One> for Rational32
impl Sub<One> for Rational32
source§impl Sub<One> for Rational64
impl Sub<One> for Rational64
source§impl SubAssign<&One> for Rational128
impl SubAssign<&One> for Rational128
source§fn sub_assign(&mut self, _: &One)
fn sub_assign(&mut self, _: &One)
Performs the
-=
operation. Read moresource§impl SubAssign<&One> for Rational16
impl SubAssign<&One> for Rational16
source§fn sub_assign(&mut self, _: &One)
fn sub_assign(&mut self, _: &One)
Performs the
-=
operation. Read moresource§impl SubAssign<&One> for Rational32
impl SubAssign<&One> for Rational32
source§fn sub_assign(&mut self, _: &One)
fn sub_assign(&mut self, _: &One)
Performs the
-=
operation. Read moresource§impl SubAssign<&One> for Rational64
impl SubAssign<&One> for Rational64
source§fn sub_assign(&mut self, _: &One)
fn sub_assign(&mut self, _: &One)
Performs the
-=
operation. Read moresource§impl SubAssign<&One> for Rational8
impl SubAssign<&One> for Rational8
source§fn sub_assign(&mut self, _: &One)
fn sub_assign(&mut self, _: &One)
Performs the
-=
operation. Read moresource§impl SubAssign<One> for Rational128
impl SubAssign<One> for Rational128
source§fn sub_assign(&mut self, _: One)
fn sub_assign(&mut self, _: One)
Performs the
-=
operation. Read moresource§impl SubAssign<One> for Rational16
impl SubAssign<One> for Rational16
source§fn sub_assign(&mut self, _: One)
fn sub_assign(&mut self, _: One)
Performs the
-=
operation. Read moresource§impl SubAssign<One> for Rational32
impl SubAssign<One> for Rational32
source§fn sub_assign(&mut self, _: One)
fn sub_assign(&mut self, _: One)
Performs the
-=
operation. Read moresource§impl SubAssign<One> for Rational64
impl SubAssign<One> for Rational64
source§fn sub_assign(&mut self, _: One)
fn sub_assign(&mut self, _: One)
Performs the
-=
operation. Read moresource§impl SubAssign<One> for Rational8
impl SubAssign<One> for Rational8
source§fn sub_assign(&mut self, _: One)
fn sub_assign(&mut self, _: One)
Performs the
-=
operation. Read moreimpl Eq for One
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more