Struct hls_m3u8::types::SignedDecimalFloatingPoint [−][src]
pub struct SignedDecimalFloatingPoint(_);
Signed decimal floating-point number.
See: 4.2. Attribute Lists
Methods
impl SignedDecimalFloatingPoint
[src]
impl SignedDecimalFloatingPoint
pub fn new(n: f64) -> Result<Self>
[src]
pub fn new(n: f64) -> Result<Self>
Makes a new SignedDecimalFloatingPoint
instance.
Errors
The given value must be finite,
otherwise this function will return an error that has the kind ErrorKind::InvalidInput
.
pub fn as_f64(self) -> f64
[src]
pub fn as_f64(self) -> f64
Converts DecimalFloatingPoint
to f64
.
Trait Implementations
impl Debug for SignedDecimalFloatingPoint
[src]
impl Debug for SignedDecimalFloatingPoint
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 Clone for SignedDecimalFloatingPoint
[src]
impl Clone for SignedDecimalFloatingPoint
fn clone(&self) -> SignedDecimalFloatingPoint
[src]
fn clone(&self) -> SignedDecimalFloatingPoint
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 SignedDecimalFloatingPoint
[src]
impl Copy for SignedDecimalFloatingPoint
impl PartialEq for SignedDecimalFloatingPoint
[src]
impl PartialEq for SignedDecimalFloatingPoint
fn eq(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn eq(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn ne(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests for !=
.
impl PartialOrd for SignedDecimalFloatingPoint
[src]
impl PartialOrd for SignedDecimalFloatingPoint
fn partial_cmp(&self, other: &SignedDecimalFloatingPoint) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &SignedDecimalFloatingPoint) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn lt(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn le(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn gt(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &SignedDecimalFloatingPoint) -> bool
[src]
fn ge(&self, other: &SignedDecimalFloatingPoint) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl From<i32> for SignedDecimalFloatingPoint
[src]
impl From<i32> for SignedDecimalFloatingPoint
impl Eq for SignedDecimalFloatingPoint
[src]
impl Eq for SignedDecimalFloatingPoint
impl Display for SignedDecimalFloatingPoint
[src]
impl Display for SignedDecimalFloatingPoint
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 FromStr for SignedDecimalFloatingPoint
[src]
impl FromStr for SignedDecimalFloatingPoint
Auto Trait Implementations
impl Send for SignedDecimalFloatingPoint
impl Send for SignedDecimalFloatingPoint
impl Sync for SignedDecimalFloatingPoint
impl Sync for SignedDecimalFloatingPoint