Struct FreeRational
pub struct FreeRational {
pub numer: i64,
pub denom: i64,
}Fields§
§numer: i64§denom: i64Implementations§
Trait Implementations§
§impl Add for FreeRational
impl Add for FreeRational
§impl AddAssign for FreeRational
impl AddAssign for FreeRational
§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read more§impl Clone for FreeRational
impl Clone for FreeRational
impl Copy for FreeRational
§impl Debug for FreeRational
impl Debug for FreeRational
§impl Display for FreeRational
impl Display for FreeRational
§impl Div<i64> for FreeRational
impl Div<i64> for FreeRational
§impl DivAssign<i64> for FreeRational
impl DivAssign<i64> for FreeRational
§fn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
Performs the
/= operation. Read moreimpl Eq for FreeRational
§impl Hash for FreeRational
impl Hash for FreeRational
§impl Mul<i64> for FreeRational
impl Mul<i64> for FreeRational
§impl MulAssign<i64> for FreeRational
impl MulAssign<i64> for FreeRational
§fn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
Performs the
*= operation. Read more§impl Ord for FreeRational
impl Ord for FreeRational
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl PartialEq for FreeRational
impl PartialEq for FreeRational
§impl PartialOrd for FreeRational
impl PartialOrd for FreeRational
impl StructuralPartialEq for FreeRational
§impl Sub for FreeRational
impl Sub for FreeRational
§impl SubAssign for FreeRational
impl SubAssign for FreeRational
§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for FreeRational
impl RefUnwindSafe for FreeRational
impl Send for FreeRational
impl Sync for FreeRational
impl Unpin for FreeRational
impl UnsafeUnpin for FreeRational
impl UnwindSafe for FreeRational
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