Trait ttf_parser::parser::TryNumFrom

source ·
pub trait TryNumFrom<T>: Sized {
    // Required method
    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§

source

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

Casts between numeric types.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TryNumFrom<f32> for i16

source§

impl TryNumFrom<f32> for i32

source§

impl TryNumFrom<f32> for u8

source§

impl TryNumFrom<f32> for u16

Implementors§