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;
fn from_u32(t: u32) -> Self;
fn from_i32(t: i32) -> Self; }

Trait for converting from different numeric types

Required methods

fn from_f64(t: f64) -> Self[src]

from a f64

fn from_f32(t: f32) -> Self[src]

from a f32

fn from_isize(t: isize) -> Self[src]

from a isze

fn from_u32(t: u32) -> Self[src]

from a u32

fn from_i32(t: i32) -> Self[src]

from a i32

Loading content...

Implementations on Foreign Types

impl FromPrimitive for f64[src]

impl FromPrimitive for f32[src]

Loading content...

Implementors

Loading content...