Struct dfp::DecFloat64 [−][src]
pub struct DecFloat64(_);
Methods
impl DecFloat64
[src]
impl DecFloat64
pub fn pow(self, other: &Self) -> Self
[src]
pub fn pow(self, other: &Self) -> Self
pub fn one() -> Self
[src]
pub fn one() -> Self
pub fn from_bits(v: u64) -> DecFloat64
[src]
pub fn from_bits(v: u64) -> DecFloat64
pub fn to_bits(self) -> u64
[src]
pub fn to_bits(self) -> u64
Trait Implementations
impl Clone for DecFloat64
[src]
impl Clone for DecFloat64
fn clone(&self) -> DecFloat64
[src]
fn clone(&self) -> DecFloat64
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for DecFloat64
[src]
impl Copy for DecFloat64
impl Debug for DecFloat64
[src]
impl Debug for DecFloat64
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for DecFloat64
[src]
impl PartialEq for DecFloat64
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<i32> for DecFloat64
[src]
impl From<i32> for DecFloat64
fn from(value: i32) -> DecFloat64
[src]
fn from(value: i32) -> DecFloat64
Performs the conversion.
impl From<u32> for DecFloat64
[src]
impl From<u32> for DecFloat64
fn from(value: u32) -> DecFloat64
[src]
fn from(value: u32) -> DecFloat64
Performs the conversion.
impl AddAssign for DecFloat64
[src]
impl AddAssign for DecFloat64
fn add_assign(&mut self, other: DecFloat64)
[src]
fn add_assign(&mut self, other: DecFloat64)
Performs the +=
operation.
impl SubAssign for DecFloat64
[src]
impl SubAssign for DecFloat64
fn sub_assign(&mut self, other: DecFloat64)
[src]
fn sub_assign(&mut self, other: DecFloat64)
Performs the -=
operation.
impl MulAssign for DecFloat64
[src]
impl MulAssign for DecFloat64
fn mul_assign(&mut self, other: DecFloat64)
[src]
fn mul_assign(&mut self, other: DecFloat64)
Performs the *=
operation.
impl DivAssign for DecFloat64
[src]
impl DivAssign for DecFloat64
fn div_assign(&mut self, other: DecFloat64)
[src]
fn div_assign(&mut self, other: DecFloat64)
Performs the /=
operation.
impl Add for DecFloat64
[src]
impl Add for DecFloat64
type Output = DecFloat64
The resulting type after applying the +
operator.
fn add(self, other: DecFloat64) -> DecFloat64
[src]
fn add(self, other: DecFloat64) -> DecFloat64
Performs the +
operation.
impl Sub for DecFloat64
[src]
impl Sub for DecFloat64
type Output = DecFloat64
The resulting type after applying the -
operator.
fn sub(self, other: DecFloat64) -> DecFloat64
[src]
fn sub(self, other: DecFloat64) -> DecFloat64
Performs the -
operation.
impl Mul for DecFloat64
[src]
impl Mul for DecFloat64
type Output = DecFloat64
The resulting type after applying the *
operator.
fn mul(self, other: DecFloat64) -> DecFloat64
[src]
fn mul(self, other: DecFloat64) -> DecFloat64
Performs the *
operation.
impl Div for DecFloat64
[src]
impl Div for DecFloat64
type Output = DecFloat64
The resulting type after applying the /
operator.
fn div(self, other: DecFloat64) -> DecFloat64
[src]
fn div(self, other: DecFloat64) -> DecFloat64
Performs the /
operation.
impl FromStr for DecFloat64
[src]
impl FromStr for DecFloat64
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Error>
[src]
fn from_str(s: &str) -> Result<Self, Error>
Parses a string s
to return a value of this type. Read more
impl Display for DecFloat64
[src]
impl Display for DecFloat64
Auto Trait Implementations
impl Send for DecFloat64
impl Send for DecFloat64
impl Sync for DecFloat64
impl Sync for DecFloat64