pub struct ReverseRate(pub u64);
Expand description
Reverse ordered rate. Highest is the first one.
Tuple Fields§
§0: u64
Trait Implementations§
Source§impl Clone for ReverseRate
impl Clone for ReverseRate
Source§fn clone(&self) -> ReverseRate
fn clone(&self) -> ReverseRate
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 ReverseRate
impl Debug for ReverseRate
Source§impl<'de> Deserialize<'de> for ReverseRate
impl<'de> Deserialize<'de> for ReverseRate
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<u64> for ReverseRate
impl From<u64> for ReverseRate
Source§fn from(r: u64) -> ReverseRate
fn from(r: u64) -> ReverseRate
Converts to this type from the input type.
Source§impl Into<u64> for &ReverseRate
impl Into<u64> for &ReverseRate
Source§impl Into<u64> for ReverseRate
impl Into<u64> for ReverseRate
Source§impl IntoPoints for ReverseRate
impl IntoPoints for ReverseRate
fn into_points(self) -> u64
Source§impl IntoPrice for ReverseRate
impl IntoPrice for ReverseRate
fn into_price(self) -> f64
Source§impl Ord for ReverseRate
impl Ord for ReverseRate
Source§fn cmp(&self, other: &ReverseRate) -> Ordering
fn cmp(&self, other: &ReverseRate) -> Ordering
1.21.0 · 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
Source§impl PartialEq for ReverseRate
impl PartialEq for ReverseRate
Source§impl PartialOrd for ReverseRate
impl PartialOrd for ReverseRate
Source§impl Serialize for ReverseRate
impl Serialize for ReverseRate
impl Copy for ReverseRate
impl Eq for ReverseRate
Auto Trait Implementations§
impl Freeze for ReverseRate
impl RefUnwindSafe for ReverseRate
impl Send for ReverseRate
impl Sync for ReverseRate
impl Unpin for ReverseRate
impl UnwindSafe for ReverseRate
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