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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)