Struct dfp::DecFloat128 [−][src]
pub struct DecFloat128(_);
Methods
impl DecFloat128
[src]
impl DecFloat128
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: u128) -> Self
[src]
pub fn from_bits(v: u128) -> Self
pub fn to_bits(self) -> u128
[src]
pub fn to_bits(self) -> u128
Trait Implementations
impl Clone for DecFloat128
[src]
impl Clone for DecFloat128
fn clone(&self) -> DecFloat128
[src]
fn clone(&self) -> DecFloat128
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 DecFloat128
[src]
impl Copy for DecFloat128
impl Debug for DecFloat128
[src]
impl Debug for DecFloat128
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 DecFloat128
[src]
impl PartialEq for DecFloat128
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 DecFloat128
[src]
impl From<i32> for DecFloat128
fn from(value: i32) -> DecFloat128
[src]
fn from(value: i32) -> DecFloat128
Performs the conversion.
impl From<u32> for DecFloat128
[src]
impl From<u32> for DecFloat128
fn from(value: u32) -> DecFloat128
[src]
fn from(value: u32) -> DecFloat128
Performs the conversion.
impl From<i64> for DecFloat128
[src]
impl From<i64> for DecFloat128
fn from(value: i64) -> DecFloat128
[src]
fn from(value: i64) -> DecFloat128
Performs the conversion.
impl From<u64> for DecFloat128
[src]
impl From<u64> for DecFloat128
fn from(value: u64) -> DecFloat128
[src]
fn from(value: u64) -> DecFloat128
Performs the conversion.
impl AddAssign for DecFloat128
[src]
impl AddAssign for DecFloat128
fn add_assign(&mut self, other: DecFloat128)
[src]
fn add_assign(&mut self, other: DecFloat128)
Performs the +=
operation.
impl SubAssign for DecFloat128
[src]
impl SubAssign for DecFloat128
fn sub_assign(&mut self, other: DecFloat128)
[src]
fn sub_assign(&mut self, other: DecFloat128)
Performs the -=
operation.
impl MulAssign for DecFloat128
[src]
impl MulAssign for DecFloat128
fn mul_assign(&mut self, other: DecFloat128)
[src]
fn mul_assign(&mut self, other: DecFloat128)
Performs the *=
operation.
impl DivAssign for DecFloat128
[src]
impl DivAssign for DecFloat128
fn div_assign(&mut self, other: DecFloat128)
[src]
fn div_assign(&mut self, other: DecFloat128)
Performs the /=
operation.
impl Add for DecFloat128
[src]
impl Add for DecFloat128
type Output = DecFloat128
The resulting type after applying the +
operator.
fn add(self, other: DecFloat128) -> DecFloat128
[src]
fn add(self, other: DecFloat128) -> DecFloat128
Performs the +
operation.
impl Sub for DecFloat128
[src]
impl Sub for DecFloat128
type Output = DecFloat128
The resulting type after applying the -
operator.
fn sub(self, other: DecFloat128) -> DecFloat128
[src]
fn sub(self, other: DecFloat128) -> DecFloat128
Performs the -
operation.
impl Mul for DecFloat128
[src]
impl Mul for DecFloat128
type Output = DecFloat128
The resulting type after applying the *
operator.
fn mul(self, other: DecFloat128) -> DecFloat128
[src]
fn mul(self, other: DecFloat128) -> DecFloat128
Performs the *
operation.
impl Div for DecFloat128
[src]
impl Div for DecFloat128
type Output = DecFloat128
The resulting type after applying the /
operator.
fn div(self, other: DecFloat128) -> DecFloat128
[src]
fn div(self, other: DecFloat128) -> DecFloat128
Performs the /
operation.
impl FromStr for DecFloat128
[src]
impl FromStr for DecFloat128
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 DecFloat128
[src]
impl Display for DecFloat128
Auto Trait Implementations
impl Send for DecFloat128
impl Send for DecFloat128
impl Sync for DecFloat128
impl Sync for DecFloat128