pub struct Ratio<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> AddAssign<&Ratio<T>> for Ratio<T>
impl<T> AddAssign<&Ratio<T>> for Ratio<T>
Source§fn add_assign(&mut self, rhs: &Ratio<T>)
fn add_assign(&mut self, rhs: &Ratio<T>)
Performs the
+= operation. Read moreSource§impl<T> AddAssign for Ratio<T>
impl<T> AddAssign for Ratio<T>
Source§fn add_assign(&mut self, rhs: Ratio<T>)
fn add_assign(&mut self, rhs: Ratio<T>)
Performs the
+= operation. Read moreSource§impl<T> AddMon for Ratio<T>
impl<T> AddMon for Ratio<T>
fn sum<A, I>(itr: I) -> Selfwhere
Self: AddAssign<A>,
I: IntoIterator<Item = A>,
Source§impl<T> DivAssign<&Ratio<T>> for Ratio<T>
impl<T> DivAssign<&Ratio<T>> for Ratio<T>
Source§fn div_assign(&mut self, rhs: &Ratio<T>)
fn div_assign(&mut self, rhs: &Ratio<T>)
Performs the
/= operation. Read moreSource§impl<T> DivAssign for Ratio<T>
impl<T> DivAssign for Ratio<T>
Source§fn div_assign(&mut self, rhs: Ratio<T>)
fn div_assign(&mut self, rhs: Ratio<T>)
Performs the
/= operation. Read moreSource§impl<T> Mon for Ratio<T>
impl<T> Mon for Ratio<T>
fn product<A, I>(itr: I) -> Selfwhere
Self: MulAssign<A>,
I: IntoIterator<Item = A>,
Source§impl<T> MulAssign<&Ratio<T>> for Ratio<T>
impl<T> MulAssign<&Ratio<T>> for Ratio<T>
Source§fn mul_assign(&mut self, rhs: &Ratio<T>)
fn mul_assign(&mut self, rhs: &Ratio<T>)
Performs the
*= operation. Read moreSource§impl<T> MulAssign for Ratio<T>
impl<T> MulAssign for Ratio<T>
Source§fn mul_assign(&mut self, rhs: Ratio<T>)
fn mul_assign(&mut self, rhs: Ratio<T>)
Performs the
*= operation. Read moreSource§impl<T> Ord for Ratio<T>
impl<T> Ord for Ratio<T>
Source§impl<T> PartialOrd for Ratio<T>
impl<T> PartialOrd for Ratio<T>
Source§impl<'a, 'b, T> RemAssign<&'b Ratio<T>> for Ratio<T>
impl<'a, 'b, T> RemAssign<&'b Ratio<T>> for Ratio<T>
Source§fn rem_assign(&mut self, rhs: &'b Ratio<T>)
fn rem_assign(&mut self, rhs: &'b Ratio<T>)
Performs the
%= operation. Read moreSource§impl<'a, 'b, T> RemAssign for Ratio<T>
impl<'a, 'b, T> RemAssign for Ratio<T>
Source§fn rem_assign(&mut self, rhs: Ratio<T>)
fn rem_assign(&mut self, rhs: Ratio<T>)
Performs the
%= operation. Read moreSource§impl<T> SubAssign<&Ratio<T>> for Ratio<T>
impl<T> SubAssign<&Ratio<T>> for Ratio<T>
Source§fn sub_assign(&mut self, rhs: &Ratio<T>)
fn sub_assign(&mut self, rhs: &Ratio<T>)
Performs the
-= operation. Read moreSource§impl<T> SubAssign for Ratio<T>
impl<T> SubAssign for Ratio<T>
Source§fn sub_assign(&mut self, rhs: Ratio<T>)
fn sub_assign(&mut self, rhs: Ratio<T>)
Performs the
-= operation. Read moreimpl<T> AddGrp for Ratio<T>
impl<T> AddGrpOps<Ratio<T>> for &Ratio<T>
impl<T> AddGrpOps for Ratio<T>
impl<T> AddMonOps<Ratio<T>> for &Ratio<T>
impl<T> AddMonOps for Ratio<T>
impl<T: Copy> Copy for Ratio<T>
impl<T: Eq> Eq for Ratio<T>
impl<T> EucRingOps<Ratio<T>> for &Ratio<T>
impl<T> EucRingOps for Ratio<T>
impl<T> Field for Ratio<T>
impl<T> FieldOps<Ratio<T>> for &Ratio<T>
impl<T> FieldOps for Ratio<T>
impl<T> MonOps<Ratio<T>> for &Ratio<T>
impl<T> MonOps for Ratio<T>
impl<T> RingOps<Ratio<T>> for &Ratio<T>
impl<T> RingOps for Ratio<T>
impl<T> StructuralPartialEq for Ratio<T>
Auto Trait Implementations§
impl<T> Freeze for Ratio<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ratio<T>where
T: RefUnwindSafe,
impl<T> Send for Ratio<T>where
T: Send,
impl<T> Sync for Ratio<T>where
T: Sync,
impl<T> Unpin for Ratio<T>where
T: Unpin,
impl<T> UnwindSafe for Ratio<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more