Trait cosmwasm_std::Fraction
source · pub trait Fraction<T>: Sized {
// Required methods
fn numerator(&self) -> T;
fn denominator(&self) -> T;
fn inv(&self) -> Option<Self>;
}Expand description
A fraction p/q with integers p and q.
p is called the numerator and q is called the denominator.
Required Methods§
sourcefn denominator(&self) -> T
fn denominator(&self) -> T
Returns the denominator q
Object Safety§
This trait is not object safe.