[][src]Trait nom::ToUsize

pub trait ToUsize {
    fn to_usize(&self) -> usize;

Helper trait to convert numbers to usize

by default, usize implements From<u8> and From<u16> but not From<u32> and From<u64> because that would be invalid on some platforms. This trait implements the conversion for platforms with 32 and 64 bits pointer platforms

Required methods

fn to_usize(&self) -> usize

converts self to usize

Loading content...

Implementations on Foreign Types

impl ToUsize for u8[src]

impl ToUsize for u16[src]

impl ToUsize for usize[src]

impl ToUsize for u32[src]

impl ToUsize for u64[src]

Loading content...


Loading content...