pub struct Frac<T: Integer>(/* private fields */);Expand description
分数を表す構造体
Frac(a, b):= a / b
Implementations§
Trait Implementations§
Source§impl<T> AddAssign<T> for Frac<T>
impl<T> AddAssign<T> for Frac<T>
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+= operation. Read moreSource§impl<T> AddAssign for Frac<T>
impl<T> AddAssign for Frac<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<T> DivAssign<T> for Frac<T>
impl<T> DivAssign<T> for Frac<T>
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/= operation. Read moreSource§impl<T> DivAssign for Frac<T>
impl<T> DivAssign for Frac<T>
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/= operation. Read moreSource§impl<T> MulAssign<T> for Frac<T>
impl<T> MulAssign<T> for Frac<T>
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*= operation. Read moreSource§impl<T> MulAssign for Frac<T>
impl<T> MulAssign for Frac<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moreSource§impl<T> Ord for Frac<T>
impl<T> Ord for Frac<T>
Source§impl<T> PartialOrd for Frac<T>
impl<T> PartialOrd for Frac<T>
Source§impl<T> SubAssign<T> for Frac<T>
impl<T> SubAssign<T> for Frac<T>
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-= operation. Read moreSource§impl<T> SubAssign for Frac<T>
impl<T> SubAssign for Frac<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl<T: Copy + Integer> Copy for Frac<T>
impl<T> Eq for Frac<T>
Auto Trait Implementations§
impl<T> Freeze for Frac<T>where
T: Freeze,
impl<T> RefUnwindSafe for Frac<T>where
T: RefUnwindSafe,
impl<T> Send for Frac<T>where
T: Send,
impl<T> Sync for Frac<T>where
T: Sync,
impl<T> Unpin for Frac<T>where
T: Unpin,
impl<T> UnwindSafe for Frac<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