pub struct Fraction {
pub numerator: u32,
pub denominator: u32,
}
Expand description
Fraction representation used for timing settings.
This is only a representation of the data returned by the backend, not a mathematical type. Two Fractions are equal when fields are equal, not when they are the equal rational number.
Fields§
§numerator: u32
§denominator: u32
Implementations§
Trait Implementations§
impl Copy for Fraction
impl Eq for Fraction
impl StructuralPartialEq for Fraction
Auto Trait Implementations§
impl Freeze for Fraction
impl RefUnwindSafe for Fraction
impl Send for Fraction
impl Sync for Fraction
impl Unpin for Fraction
impl UnwindSafe for Fraction
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