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