#[repr(C)]pub struct ORSRational {
pub num: i32,
pub denom: u32,
}Expand description
@brief Signed rational as a fraction
Fields§
§num: i32< Numerator (carry the sign)
denom: u32< Denominator
Trait Implementations§
Source§impl Clone for ORSRational
impl Clone for ORSRational
Source§fn clone(&self) -> ORSRational
fn clone(&self) -> ORSRational
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 ORSRational
impl Debug for ORSRational
impl Copy for ORSRational
Auto Trait Implementations§
impl Freeze for ORSRational
impl RefUnwindSafe for ORSRational
impl Send for ORSRational
impl Sync for ORSRational
impl Unpin for ORSRational
impl UnwindSafe for ORSRational
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