Trait std::num::strconv::NumStrConv[src]

pub trait NumStrConv {
    fn nan() -> Option<Self>;
    fn inf() -> Option<Self>;
    fn neg_inf() -> Option<Self>;
    fn neg_zero() -> Option<Self>;
    fn round_to_zero(&self) -> Self;
    fn fractional_part(&self) -> Self;
}

Encompasses functions used by the string converter.

Required Methods

fn nan() -> Option<Self>

Returns the NaN value.

fn inf() -> Option<Self>

Returns the infinite value.

fn neg_inf() -> Option<Self>

Returns the negative infinite value.

fn neg_zero() -> Option<Self>

Returns -0.0.

fn round_to_zero(&self) -> Self

Rounds the number toward zero.

fn fractional_part(&self) -> Self

Returns the fractional part of the number.

Implementors