pub enum NumericPair {
Int(Int, Int),
Integer(Integer, Integer),
Float(Float, Float),
Double(Double, Double),
Decimal(Decimal, Decimal),
}
Variants§
Int(Int, Int)
Integer(Integer, Integer)
Float(Float, Float)
Double(Double, Double)
Decimal(Decimal, Decimal)
Implementations§
Source§impl NumericPair
impl NumericPair
pub fn with_casts_from(lhs: Numeric, rhs: Numeric) -> NumericPair
Auto Trait Implementations§
impl Freeze for NumericPair
impl RefUnwindSafe for NumericPair
impl Send for NumericPair
impl Sync for NumericPair
impl Unpin for NumericPair
impl UnwindSafe for NumericPair
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> 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