pub struct PQLFraction {
pub num: u16,
pub den: u16,
}Fields§
§num: u16§den: u16Implementations§
Trait Implementations§
Source§impl Add for PQLFraction
impl Add for PQLFraction
Source§impl AddAssign for PQLFraction
impl AddAssign for PQLFraction
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl Clone for PQLFraction
impl Clone for PQLFraction
Source§fn clone(&self) -> PQLFraction
fn clone(&self) -> PQLFraction
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 PQLFraction
impl Debug for PQLFraction
Source§impl PartialEq for PQLFraction
impl PartialEq for PQLFraction
Source§impl PartialOrd for PQLFraction
impl PartialOrd for PQLFraction
impl Copy for PQLFraction
Auto Trait Implementations§
impl Freeze for PQLFraction
impl RefUnwindSafe for PQLFraction
impl Send for PQLFraction
impl Sync for PQLFraction
impl Unpin for PQLFraction
impl UnwindSafe for PQLFraction
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more