pub enum PQLNumeric {
Count(PQLCardCount),
Long(PQLLong),
Double(PQLDouble),
Frac(PQLFraction),
}Variants§
Implementations§
Source§impl PQLNumeric
impl PQLNumeric
pub fn try_add(self, other: Self) -> Result<Self, RuntimeError>
pub fn try_sub(self, other: Self) -> Result<Self, RuntimeError>
pub fn try_mul(self, other: Self) -> Result<Self, RuntimeError>
pub const fn try_div(self, other: Self) -> Result<Self, RuntimeError>
pub fn partial_compare(self, other: Self) -> Option<Ordering>
pub const fn to_dbl(self) -> PQLDouble
Trait Implementations§
Source§impl Clone for PQLNumeric
impl Clone for PQLNumeric
Source§fn clone(&self) -> PQLNumeric
fn clone(&self) -> PQLNumeric
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 PQLNumeric
impl Debug for PQLNumeric
Source§impl PartialEq for PQLNumeric
impl PartialEq for PQLNumeric
impl Copy for PQLNumeric
impl StructuralPartialEq for PQLNumeric
Auto Trait Implementations§
impl Freeze for PQLNumeric
impl RefUnwindSafe for PQLNumeric
impl Send for PQLNumeric
impl Sync for PQLNumeric
impl Unpin for PQLNumeric
impl UnwindSafe for PQLNumeric
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