Trait ttf_parser::parser::TryNumFrom[][src]

pub trait TryNumFrom<T>: Sized {
    fn try_num_from(_: T) -> Option<Self>;
}
Expand description

Just like TryFrom, but for numeric types not supported by the Rust’s std.

Required methods

fn try_num_from(_: T) -> Option<Self>[src]

Casts between numeric types.

Implementations on Foreign Types

impl TryNumFrom<f32> for u8[src]

fn try_num_from(v: f32) -> Option<Self>[src]

impl TryNumFrom<f32> for i16[src]

fn try_num_from(v: f32) -> Option<Self>[src]

impl TryNumFrom<f32> for u16[src]

fn try_num_from(v: f32) -> Option<Self>[src]

impl TryNumFrom<f32> for i32[src]

fn try_num_from(v: f32) -> Option<Self>[src]

Implementors