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