pub struct ReducedRatioV1 { /* private fields */ }Expand description
Positive reduced rational used where binary floating point would change an exact importer contract.
Implementations§
Trait Implementations§
Source§impl Clone for ReducedRatioV1
impl Clone for ReducedRatioV1
Source§fn clone(&self) -> ReducedRatioV1
fn clone(&self) -> ReducedRatioV1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReducedRatioV1
Source§impl Debug for ReducedRatioV1
impl Debug for ReducedRatioV1
Source§impl<'de> Deserialize<'de> for ReducedRatioV1
impl<'de> Deserialize<'de> for ReducedRatioV1
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
impl Eq for ReducedRatioV1
Source§impl Ord for ReducedRatioV1
impl Ord for ReducedRatioV1
Source§fn cmp(&self, other: &ReducedRatioV1) -> Ordering
fn cmp(&self, other: &ReducedRatioV1) -> Ordering
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
Source§impl PartialEq for ReducedRatioV1
impl PartialEq for ReducedRatioV1
Source§impl PartialOrd for ReducedRatioV1
impl PartialOrd for ReducedRatioV1
Source§impl Serialize for ReducedRatioV1
impl Serialize for ReducedRatioV1
impl StructuralPartialEq for ReducedRatioV1
Auto Trait Implementations§
impl Freeze for ReducedRatioV1
impl RefUnwindSafe for ReducedRatioV1
impl Send for ReducedRatioV1
impl Sync for ReducedRatioV1
impl Unpin for ReducedRatioV1
impl UnsafeUnpin for ReducedRatioV1
impl UnwindSafe for ReducedRatioV1
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