Struct NumericBuf

Source
pub struct NumericBuf { /* private fields */ }
Expand description

An owned, mutable numeric.

Implementations§

Source§

impl NumericBuf

Source

pub fn nan() -> Self

Creates a NaN numeric.

Source

pub fn zero() -> Self

Creates a zero numeric.

Source

pub fn negate_mut(&mut self)

Negate this value.

Source

pub fn abs_mut(&mut self)

Compute the absolute value of self.

Source

pub fn round_mut(&mut self, scale: i32)

Round a value to have scale digits after the decimal point. We allow negative scale, implying rounding before the decimal point — Oracle interprets rounding that way.

§Panics

Panics if overflows.

Source

pub fn trunc_mut(&mut self, scale: i32)

Truncate a value to have scale digits after the decimal point. We allow negative scale, implying a truncation before the decimal point — Oracle interprets truncation that way.

Source

pub fn factorial(num: i64) -> Option<Self>

Compute factorial.

Returns None if overflows.

Source

pub fn apply_typmod(&mut self, typmod: Typmod) -> bool

Do bounds checking and rounding according to typmod.

Returns true if overflows.

Notes that no matter whether overflows, self will be rounded.

Source

pub fn as_bytes(&self) -> &[u8]

Extracts a byte slice contains the entire numeric.

Source

pub fn as_numeric(&self) -> &Numeric

Gets a Numeric reference by doing a cheap reference-to-reference conversion.

Methods from Deref<Target = Numeric>§

Source

pub fn as_bytes(&self) -> &[u8]

Extracts a byte slice contains the entire numeric.

Source

pub fn is_nan(&self) -> bool

Checks if self is NaN.

Source

pub fn is_negative(&self) -> bool

Checks if self is negative.

Source

pub fn is_positive(&self) -> bool

Checks if self is positive.

Source

pub fn scale(&self) -> Option<i32>

Returns the scale, i.e. the count of decimal digits in the fractional part.

Returns None if self is NaN.

Source

pub fn negate(&self) -> NumericBuf

Negate this value.

Source

pub fn signum(&self) -> NumericBuf

Returns a numeric that represents the sign of self.

  • -1 if self is less than 0
  • 0 if self is equal to 0
  • 1 if self is greater than zero
  • NaN if self is NaN
Source

pub fn inc(&self) -> NumericBuf

Increment self by one.

§Panics

Panics if overflows.

Source

pub fn checked_add(&self, other: &Self) -> Option<NumericBuf>

Add two numerics, returning None if overflow occurred.

Source

pub fn checked_sub(&self, other: &Self) -> Option<NumericBuf>

Subtract one numeric from another, returning None if overflow occurred.

Source

pub fn checked_mul(&self, other: &Self) -> Option<NumericBuf>

Calculate the product of two numerics, returning None if overflow occurred.

Source

pub fn checked_div(&self, other: &Self) -> Option<NumericBuf>

Checked numeric division. Computes self / other, returning None if other == 0 or the division results in overflow.

Source

pub fn checked_div_trunc(&self, other: &Self) -> Option<NumericBuf>

Computes self / other, truncating the result to an integer.

Returns None if other == 0 or the division results in overflow.

Source

pub fn checked_rem(&self, other: &Self) -> Option<NumericBuf>

Checked numeric remainder. Computes self % other, returning None if rhs == 0 or the division results in overflow.

Source

pub fn round(&self, scale: i32) -> NumericBuf

Round a value to have scale digits after the decimal point. We allow negative scale, implying rounding before the decimal point — Oracle interprets rounding that way.

§Panics

Panics if overflows.

Source

pub fn trunc(&self, scale: i32) -> NumericBuf

Truncate a value to have scale digits after the decimal point. We allow negative scale, implying a truncation before the decimal point — Oracle interprets truncation that way.

Source

pub fn ceil(&self) -> NumericBuf

Return the smallest integer greater than or equal to the argument.

§Panics

Panics if overflows.

Source

pub fn floor(&self) -> NumericBuf

Return the largest integer equal to or less than the argument.

§Panics

Panics if overflows.

Source

pub fn abs(&self) -> NumericBuf

Compute the absolute value of self.

Source

pub fn sqrt(&self) -> NumericBuf

Compute the square root of a numeric.

§Panics

Panics if self is negative.

Source

pub fn ln(&self) -> NumericBuf

Compute the natural logarithm of self.

§Panics

Panics if self <= 0.

Source

pub fn log(&self, base: &Self) -> NumericBuf

Compute the logarithm of self in a given base.

§Panics

Panics if self <= 0 or base <= 0.

Source

pub fn log2(&self) -> NumericBuf

Compute the base 2 logarithm of self.

§Panics

Panics if self <= 0.

Source

pub fn log10(&self) -> NumericBuf

Compute the base 10 logarithm of self.

§Panics

Panics if self <= 0.

Source

pub fn exp(&self) -> Option<NumericBuf>

Raise e to the power of self (e^(self)).

Returns None if overflows.

Source

pub fn pow(&self, exp: &Self) -> Option<NumericBuf>

Raise self to the power of exp.

Returns None if overflows.

§Panics

if arguments are invalid:

  • self is zero and exp is less than zero
  • self is less than zero and exp is not a integer.
Source

pub fn normalize(&self) -> String

Returns a normalized string, suppressing insignificant trailing zeroes and then any trailing decimal point.

The intent of this is to produce strings that are equal if and only if the input numeric values compare equal.

Trait Implementations§

Source§

impl Add<&Numeric> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: &Numeric) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&Numeric> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: &Numeric) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: &NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: &NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&NumericBuf> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: &NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the + operator.
Source§

fn add(self, other: NumericBuf) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&Numeric> for NumericBuf

Source§

fn add_assign(&mut self, other: &Numeric)

Performs the += operation. Read more
Source§

impl AddAssign<&NumericBuf> for NumericBuf

Source§

fn add_assign(&mut self, other: &NumericBuf)

Performs the += operation. Read more
Source§

impl AddAssign for NumericBuf

Source§

fn add_assign(&mut self, other: NumericBuf)

Performs the += operation. Read more
Source§

impl AsRef<Numeric> for NumericBuf

Source§

fn as_ref(&self) -> &Numeric

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<Numeric> for NumericBuf

Source§

fn borrow(&self) -> &Numeric

Immutably borrows from an owned value. Read more
Source§

impl Clone for NumericBuf

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NumericBuf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Display for NumericBuf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Div<&Numeric> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: &Numeric) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&Numeric> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: &Numeric) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: &NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: &NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&NumericBuf> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: &NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the / operator.
Source§

fn div(self, other: NumericBuf) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&Numeric> for NumericBuf

Source§

fn div_assign(&mut self, other: &Numeric)

Performs the /= operation. Read more
Source§

impl DivAssign<&NumericBuf> for NumericBuf

Source§

fn div_assign(&mut self, other: &NumericBuf)

Performs the /= operation. Read more
Source§

impl DivAssign for NumericBuf

Source§

fn div_assign(&mut self, other: NumericBuf)

Performs the /= operation. Read more
Source§

impl Drop for NumericBuf

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<'a> From<&'a NumericBuf> for Cow<'a, Numeric>

Source§

fn from(var: &'a NumericBuf) -> Cow<'a, Numeric>

Converts to this type from the input type.
Source§

impl<'a> From<NumericBuf> for Cow<'a, Numeric>

Source§

fn from(var: NumericBuf) -> Cow<'a, Numeric>

Converts to this type from the input type.
Source§

impl From<bool> for NumericBuf

Source§

fn from(b: bool) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for NumericBuf

Source§

fn from(val: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for NumericBuf

Source§

fn from(val: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for NumericBuf

Source§

fn from(val: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for NumericBuf

Source§

fn from(val: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for NumericBuf

Source§

fn from(val: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for NumericBuf

Source§

fn from(i: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for NumericBuf

Source§

fn from(val: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for NumericBuf

Source§

fn from(val: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for NumericBuf

Source§

fn from(val: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for NumericBuf

Source§

fn from(val: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for NumericBuf

Source§

fn from(val: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for NumericBuf

Source§

fn from(u: usize) -> Self

Converts to this type from the input type.
Source§

impl FromStr for NumericBuf

Source§

type Err = NumericParseError

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for NumericBuf

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerExp for NumericBuf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Mul<&Numeric> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Numeric) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&Numeric> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: &Numeric) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: &NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: &NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&NumericBuf> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: &NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the * operator.
Source§

fn mul(self, other: NumericBuf) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&Numeric> for NumericBuf

Source§

fn mul_assign(&mut self, other: &Numeric)

Performs the *= operation. Read more
Source§

impl MulAssign<&NumericBuf> for NumericBuf

Source§

fn mul_assign(&mut self, other: &NumericBuf)

Performs the *= operation. Read more
Source§

impl MulAssign for NumericBuf

Source§

fn mul_assign(&mut self, other: NumericBuf)

Performs the *= operation. Read more
Source§

impl Neg for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Ord for NumericBuf

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq<&Numeric> for NumericBuf

Source§

fn eq(&self, other: &&Numeric) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<&NumericBuf> for NumericBuf

Source§

fn eq(&self, other: &&NumericBuf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Numeric> for NumericBuf

Source§

fn eq(&self, other: &Numeric) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<NumericBuf> for &Numeric

Source§

fn eq(&self, other: &NumericBuf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<NumericBuf> for &NumericBuf

Source§

fn eq(&self, other: &NumericBuf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<NumericBuf> for Numeric

Source§

fn eq(&self, other: &NumericBuf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq for NumericBuf

Source§

fn eq(&self, other: &NumericBuf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd<&Numeric> for NumericBuf

Source§

fn partial_cmp(&self, other: &&Numeric) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<&NumericBuf> for NumericBuf

Source§

fn partial_cmp(&self, other: &&NumericBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Numeric> for NumericBuf

Source§

fn partial_cmp(&self, other: &Numeric) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<NumericBuf> for &Numeric

Source§

fn partial_cmp(&self, other: &NumericBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<NumericBuf> for &NumericBuf

Source§

fn partial_cmp(&self, other: &NumericBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<NumericBuf> for Numeric

Source§

fn partial_cmp(&self, other: &NumericBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd for NumericBuf

Source§

fn partial_cmp(&self, other: &NumericBuf) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem<&Numeric> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: &Numeric) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&Numeric> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: &Numeric) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: &NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: &NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&NumericBuf> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: &NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the % operator.
Source§

fn rem(self, other: NumericBuf) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<&Numeric> for NumericBuf

Source§

fn rem_assign(&mut self, other: &Numeric)

Performs the %= operation. Read more
Source§

impl RemAssign<&NumericBuf> for NumericBuf

Source§

fn rem_assign(&mut self, other: &NumericBuf)

Performs the %= operation. Read more
Source§

impl RemAssign for NumericBuf

Source§

fn rem_assign(&mut self, other: NumericBuf)

Performs the %= operation. Read more
Source§

impl Sub<&Numeric> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Numeric) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&Numeric> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: &Numeric) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: &NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: &NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&NumericBuf> for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: &NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<NumericBuf> for &Numeric

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<NumericBuf> for &NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for NumericBuf

Source§

type Output = NumericBuf

The resulting type after applying the - operator.
Source§

fn sub(self, other: NumericBuf) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&Numeric> for NumericBuf

Source§

fn sub_assign(&mut self, other: &Numeric)

Performs the -= operation. Read more
Source§

impl SubAssign<&NumericBuf> for NumericBuf

Source§

fn sub_assign(&mut self, other: &NumericBuf)

Performs the -= operation. Read more
Source§

impl SubAssign for NumericBuf

Source§

fn sub_assign(&mut self, other: NumericBuf)

Performs the -= operation. Read more
Source§

impl TryFrom<&NumericBuf> for f32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for f64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for i128

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for i16

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for i32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for i64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for i8

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for isize

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for u128

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for u16

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for u32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for u64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for u8

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&NumericBuf> for usize

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: &NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for f32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for f64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for i128

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for i16

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for i32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for i64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for i8

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for isize

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for u128

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for u16

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for u32

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for u64

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for u8

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<NumericBuf> for usize

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(value: NumericBuf) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f32> for NumericBuf

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(f: f32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f64> for NumericBuf

Source§

type Error = NumericTryFromError

The type returned in the event of a conversion error.
Source§

fn try_from(f: f64) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl UpperExp for NumericBuf

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for NumericBuf

Source§

type Target = Numeric

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Numeric

Dereferences the value.
Source§

impl Eq for NumericBuf

Source§

impl Send for NumericBuf

Source§

impl Sync for NumericBuf

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.