pub type Ratio = Ratio<NonNegativeNumber>;
Expand description
A computed
Aliased Type§
struct Ratio(pub NonNegative<f32>, pub NonNegative<f32>);
Fields§
§0: NonNegative<f32>
§1: NonNegative<f32>
Implementations§
Trait Implementations§
source§impl PartialOrd for Ratio
impl PartialOrd for Ratio
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