#[repr(C)]pub struct ORRational {
pub num: u32,
pub denom: u32,
}Expand description
@brief Unsigned rational as a fraction
Fields§
§num: u32< Numerator
denom: u32< Denominator
Trait Implementations§
Source§impl Clone for ORRational
impl Clone for ORRational
Source§fn clone(&self) -> ORRational
fn clone(&self) -> ORRational
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ORRational
impl Debug for ORRational
impl Copy for ORRational
Auto Trait Implementations§
impl Freeze for ORRational
impl RefUnwindSafe for ORRational
impl Send for ORRational
impl Sync for ORRational
impl Unpin for ORRational
impl UnwindSafe for ORRational
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