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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for Coefficient
impl PartialEq for Coefficient
Source§impl PartialOrd for Coefficient
impl PartialOrd for Coefficient
Source§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 StructuralPartialEq for Coefficient
Auto Trait Implementations§
impl Freeze for Coefficient
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