pub struct Integer64(i64);Expand description
An integer wrapping a i64, performing arithmetic overflow checks if the
checked_i64 feature is enabled.
Tuple Fields§
§0: i64Trait Implementations§
Source§impl Div<&Integer64> for &FixedDecimal9
impl Div<&Integer64> for &FixedDecimal9
Source§type Output = FixedDecimal9
type Output = FixedDecimal9
The resulting type after applying the
/ operator.Source§impl Div<Integer64> for FixedDecimal9
impl Div<Integer64> for FixedDecimal9
Source§impl DivAssign<&Integer64> for FixedDecimal9
impl DivAssign<&Integer64> for FixedDecimal9
Source§fn div_assign(&mut self, rhs: &Integer64)
fn div_assign(&mut self, rhs: &Integer64)
Performs the
/= operation. Read moreSource§impl Integer for Integer64
impl Integer for Integer64
Source§fn from_usize(i: usize) -> Self
fn from_usize(i: usize) -> Self
Obtains an integer from a primitive
usize integer.Source§impl Mul<&Integer64> for &FixedDecimal9
impl Mul<&Integer64> for &FixedDecimal9
Source§type Output = FixedDecimal9
type Output = FixedDecimal9
The resulting type after applying the
* operator.Source§impl Mul<Integer64> for FixedDecimal9
impl Mul<Integer64> for FixedDecimal9
Source§impl PartialOrd for Integer64
impl PartialOrd for Integer64
Source§impl Rational<Integer64> for FixedDecimal9
impl Rational<Integer64> for FixedDecimal9
Source§fn ratio_i(num: Integer64, denom: Integer64) -> Self
fn ratio_i(num: Integer64, denom: Integer64) -> Self
Obtains a number equal to the ratio between the given numerator and
denominator.
Source§fn to_f64(&self) -> f64
fn to_f64(&self) -> f64
Converts a number into its floating-point approximation. This can be
useful to print approximation of large numbers.
Source§fn is_exact() -> bool
fn is_exact() -> bool
Whether this type represents exact arithmetic, i.e.
Self::epsilon()
is zero.Source§fn description() -> &'static str
fn description() -> &'static str
Description of the implemented arithmetic, e.g. “64-bit floating point
arithmetic”.
Source§fn mul_up(&self, rhs: &Self) -> Self
fn mul_up(&self, rhs: &Self) -> Self
Multiplication, rounding up for types that perform a rounding on this
operation.
Source§fn div_up_as_keep_factor(&self, rhs: &Self) -> Self
fn div_up_as_keep_factor(&self, rhs: &Self) -> Self
Performs a division to obtain a keep factor. The division is rounded up
for types that cannot compute the result precisely. Additionally,
types may further round the result, which can be useful with exact
arithmetic, to avoid complexity explosion of rational numbers.
Source§fn from_usize(i: usize) -> Self
fn from_usize(i: usize) -> Self
Obtains a number equal to the given integer.
impl Copy for Integer64
impl Eq for Integer64
impl IntegerRef<Integer64> for &Integer64
impl RationalRef<&Integer64, FixedDecimal9> for &FixedDecimal9
impl StructuralPartialEq for Integer64
Auto Trait Implementations§
impl Freeze for Integer64
impl RefUnwindSafe for Integer64
impl Send for Integer64
impl Sync for Integer64
impl Unpin for Integer64
impl UnwindSafe for Integer64
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