Struct subgraph::num::BigDecimal
source ยท pub struct BigDecimal { /* private fields */ }
Expand description
An arbitrary precision decimal number.
Implementationsยง
sourceยงimpl BigDecimal
impl BigDecimal
sourcepub fn from_big_int(value: BigInt) -> Self
pub fn from_big_int(value: BigInt) -> Self
Creates a new decimal value from the specified BigInt
.
sourcepub fn divided_by(&self, rhs: &Self) -> Self
pub fn divided_by(&self, rhs: &Self) -> Self
Returns the division of two big decimals.
Trait Implementationsยง
sourceยงimpl Clone for BigDecimal
impl Clone for BigDecimal
sourceยงfn clone(&self) -> BigDecimal
fn clone(&self) -> BigDecimal
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 BigDecimal
impl Debug for BigDecimal
sourceยงimpl Default for BigDecimal
impl Default for BigDecimal
sourceยงimpl Display for BigDecimal
impl Display for BigDecimal
sourceยงimpl FromStr for BigDecimal
impl FromStr for BigDecimal
sourceยงimpl Ord for BigDecimal
impl Ord for BigDecimal
sourceยงimpl PartialEq<BigDecimal> for BigDecimal
impl PartialEq<BigDecimal> for BigDecimal
sourceยงimpl PartialOrd<BigDecimal> for BigDecimal
impl PartialOrd<BigDecimal> for BigDecimal
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 moreimpl Eq for BigDecimal
Auto Trait Implementationsยง
impl RefUnwindSafe for BigDecimal
impl !Send for BigDecimal
impl !Sync for BigDecimal
impl Unpin for BigDecimal
impl UnwindSafe for BigDecimal
Blanket Implementationsยง
sourceยงimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.