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