Trait ttf_parser::parser::NumFrom[][src]

pub trait NumFrom<T>: Sized {
    fn num_from(_: T) -> Self;
}
Expand description

A safe u32 to usize casting.

Rust doesn’t implement From<u32> for usize, because it has to support 16 bit targets. We don’t, so we can allow this.

Required methods

fn num_from(_: T) -> Self[src]

Converts u32 into usize.

Implementations on Foreign Types

impl NumFrom<u32> for usize[src]

fn num_from(v: u32) -> Self[src]

Implementors