Struct ion_rs::types::Coefficient
source · pub struct Coefficient { /* private fields */ }
Expand description
A signed integer that can be used as the coefficient of a Decimal value. This type does not
consider 0
and -0
to be equal and supports magnitudes of arbitrary size.
Trait Implementations§
source§impl Clone for Coefficient
impl Clone for Coefficient
source§fn clone(&self) -> Coefficient
fn clone(&self) -> Coefficient
Returns a copy 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 Coefficient
impl Debug for Coefficient
source§impl Display for Coefficient
impl Display for Coefficient
source§impl From<BigUint> for Coefficient
impl From<BigUint> for Coefficient
source§fn from(value: BigUint) -> Coefficient
fn from(value: BigUint) -> Coefficient
Converts to this type from the input type.
source§impl From<DecodedInt> for Coefficient
impl From<DecodedInt> for Coefficient
source§fn from(int: DecodedInt) -> Self
fn from(int: DecodedInt) -> Self
Converts to this type from the input type.
source§impl From<i128> for Coefficient
impl From<i128> for Coefficient
source§fn from(value: i128) -> Coefficient
fn from(value: i128) -> Coefficient
Converts to this type from the input type.
source§impl From<i16> for Coefficient
impl From<i16> for Coefficient
source§fn from(value: i16) -> Coefficient
fn from(value: i16) -> Coefficient
Converts to this type from the input type.
source§impl From<i32> for Coefficient
impl From<i32> for Coefficient
source§fn from(value: i32) -> Coefficient
fn from(value: i32) -> Coefficient
Converts to this type from the input type.
source§impl From<i64> for Coefficient
impl From<i64> for Coefficient
source§fn from(value: i64) -> Coefficient
fn from(value: i64) -> Coefficient
Converts to this type from the input type.
source§impl From<i8> for Coefficient
impl From<i8> for Coefficient
source§fn from(value: i8) -> Coefficient
fn from(value: i8) -> Coefficient
Converts to this type from the input type.
source§impl From<isize> for Coefficient
impl From<isize> for Coefficient
source§fn from(value: isize) -> Coefficient
fn from(value: isize) -> Coefficient
Converts to this type from the input type.
source§impl From<u128> for Coefficient
impl From<u128> for Coefficient
source§fn from(value: u128) -> Coefficient
fn from(value: u128) -> Coefficient
Converts to this type from the input type.
source§impl From<u16> for Coefficient
impl From<u16> for Coefficient
source§fn from(value: u16) -> Coefficient
fn from(value: u16) -> Coefficient
Converts to this type from the input type.
source§impl From<u32> for Coefficient
impl From<u32> for Coefficient
source§fn from(value: u32) -> Coefficient
fn from(value: u32) -> Coefficient
Converts to this type from the input type.
source§impl From<u64> for Coefficient
impl From<u64> for Coefficient
source§fn from(value: u64) -> Coefficient
fn from(value: u64) -> Coefficient
Converts to this type from the input type.
source§impl From<u8> for Coefficient
impl From<u8> for Coefficient
source§fn from(value: u8) -> Coefficient
fn from(value: u8) -> Coefficient
Converts to this type from the input type.
source§impl From<usize> for Coefficient
impl From<usize> for Coefficient
source§fn from(value: usize) -> Coefficient
fn from(value: usize) -> Coefficient
Converts to this type from the input type.
source§impl Ord for Coefficient
impl Ord for Coefficient
source§fn cmp(&self, other: &Coefficient) -> Ordering
fn cmp(&self, other: &Coefficient) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<Coefficient> for Coefficient
impl PartialEq<Coefficient> for Coefficient
source§fn eq(&self, other: &Coefficient) -> bool
fn eq(&self, other: &Coefficient) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Coefficient> for Coefficient
impl PartialOrd<Coefficient> for Coefficient
source§fn partial_cmp(&self, other: &Coefficient) -> Option<Ordering>
fn partial_cmp(&self, other: &Coefficient) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<BigInt> for Coefficient
impl TryFrom<BigInt> for Coefficient
source§impl TryFrom<Coefficient> for BigInt
impl TryFrom<Coefficient> for BigInt
impl Eq for Coefficient
impl StructuralEq for Coefficient
impl StructuralPartialEq for Coefficient
Auto Trait Implementations§
impl RefUnwindSafe for Coefficient
impl Send for Coefficient
impl Sync for Coefficient
impl Unpin for Coefficient
impl UnwindSafe for Coefficient
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