Struct cp_library_rs::number_theory::frac::Frac
source · pub struct Frac<T>(pub T, pub T);
Expand description
分数を表す構造体
Frac(a, b)
:= a / b
Tuple Fields§
§0: T
§1: T
Trait Implementations§
source§impl<T> Ord for Frac<T>where
T: Clone + Copy + Ord + Mul<Output = T>,
impl<T> Ord for Frac<T>where T: Clone + Copy + Ord + Mul<Output = T>,
source§impl<T> PartialEq<Frac<T>> for Frac<T>where
T: Clone + Copy + Ord + Mul<Output = T>,
impl<T> PartialEq<Frac<T>> for Frac<T>where T: Clone + Copy + Ord + Mul<Output = T>,
source§impl<T> PartialOrd<Frac<T>> for Frac<T>where
T: Clone + Copy + Ord + Mul<Output = T>,
impl<T> PartialOrd<Frac<T>> for Frac<T>where T: Clone + Copy + Ord + Mul<Output = T>,
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 more