pub struct Rational {
pub num: u32,
pub denom: u32,
}
Expand description
An unsigned rational number, which is a pair of 32-bit unsigned integers.
Fields§
§num: u32
§denom: u32
Implementations§
Trait Implementations§
impl Copy for Rational
Auto Trait Implementations§
impl Freeze for Rational
impl RefUnwindSafe for Rational
impl Send for Rational
impl Sync for Rational
impl Unpin for Rational
impl UnwindSafe for Rational
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