pub struct OrderedRatio(/* private fields */);Expand description
A wrapper around Ratio which implements Eq/Ord/Hash to help in auto deriving these on other structs.
Implementations§
Source§impl OrderedRatio
impl OrderedRatio
Methods from Deref<Target = Ratio>§
Trait Implementations§
Source§impl Clone for OrderedRatio
impl Clone for OrderedRatio
Source§fn clone(&self) -> OrderedRatio
fn clone(&self) -> OrderedRatio
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderedRatio
impl Debug for OrderedRatio
Source§impl Default for OrderedRatio
impl Default for OrderedRatio
Source§impl Deref for OrderedRatio
impl Deref for OrderedRatio
Source§impl DerefMut for OrderedRatio
impl DerefMut for OrderedRatio
Source§impl<'de> Deserialize<'de> for OrderedRatio
impl<'de> Deserialize<'de> for OrderedRatio
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Quantity<dyn Dimension<Kind = dyn Kind, M = Z0, T = Z0, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>> for OrderedRatio
impl From<Quantity<dyn Dimension<Kind = dyn Kind, M = Z0, T = Z0, C = Z0>, dyn Units<f64, charge = e, time = s, mass = dalton>, f64>> for OrderedRatio
Source§impl Hash for OrderedRatio
impl Hash for OrderedRatio
Source§impl Ord for OrderedRatio
impl Ord for OrderedRatio
Source§impl PartialEq for OrderedRatio
impl PartialEq for OrderedRatio
Source§impl PartialOrd for OrderedRatio
impl PartialOrd for OrderedRatio
Source§impl Serialize for OrderedRatio
impl Serialize for OrderedRatio
impl Copy for OrderedRatio
impl Eq for OrderedRatio
Auto Trait Implementations§
impl Freeze for OrderedRatio
impl !RefUnwindSafe for OrderedRatio
impl Send for OrderedRatio
impl Sync for OrderedRatio
impl Unpin for OrderedRatio
impl !UnwindSafe for OrderedRatio
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> HighestOf<T> for T
impl<T> HighestOf<T> for T
Source§type HighestLevel = T
type HighestLevel = T
This is the highest complexity level out of Self and the type parameter
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