Struct chain_impl_mockchain::rewards::Ratio
source · pub struct Ratio {
pub numerator: u64,
pub denominator: NonZeroU64,
}
Fields§
§numerator: u64
§denominator: NonZeroU64
Implementations§
Trait Implementations§
source§impl Arbitrary for Ratio
impl Arbitrary for Ratio
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl ConfigParamVariant for Ratio
impl ConfigParamVariant for Ratio
source§impl Ord for Ratio
impl Ord for Ratio
source§impl PartialEq<Ratio> for Ratio
impl PartialEq<Ratio> for Ratio
source§impl PartialOrd<Ratio> for Ratio
impl PartialOrd<Ratio> 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 moreimpl Copy for Ratio
impl Eq for Ratio
impl StructuralEq for Ratio
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnwindSafe for Ratio
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