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
impl NumStrConv for f32impl NumStrConv for f64impl NumStrConv for intimpl NumStrConv for i8impl NumStrConv for i16impl NumStrConv for i32impl NumStrConv for i64impl NumStrConv for uintimpl NumStrConv for u8impl NumStrConv for u16impl NumStrConv for u32impl NumStrConv for u64