Trait float::FromPrimitive
[−]
[src]
pub trait FromPrimitive { fn from_f64(t: f64) -> Self; fn from_f32(t: f32) -> Self; fn from_isize(t: isize) -> Self; }
Trait for converting from different numeric types
Required Methods
fn from_f64(t: f64) -> Self
from a f64
fn from_f32(t: f32) -> Self
from a f32
fn from_isize(t: isize) -> Self
from a isze
Implementors
impl FromPrimitive for f64
impl FromPrimitive for f32