Trait vecmath::traits::FromPrimitive [−][src]
pub trait FromPrimitive { pub fn from_f64(t: f64) -> Self; pub fn from_f32(t: f32) -> Self; pub fn from_isize(t: isize) -> Self; pub fn from_u32(t: u32) -> Self; pub fn from_i32(t: i32) -> Self; }
Trait for converting from different numeric types
Required methods
pub fn from_f64(t: f64) -> Self
[src]
from a f64
pub fn from_f32(t: f32) -> Self
[src]
from a f32
pub fn from_isize(t: isize) -> Self
[src]
from a isze
pub fn from_u32(t: u32) -> Self
[src]
from a u32
pub fn from_i32(t: i32) -> Self
[src]
from a i32