Skip to main content

Usize

Trait Usize 

Source
pub(crate) trait Usize {
    // Required methods
    fn as_u8(self) -> u8;
    fn as_u16(self) -> u16;
    fn as_u32(self) -> u32;
    fn as_u64(self) -> u64;
}

Required Methods§

Source

fn as_u8(self) -> u8

Source

fn as_u16(self) -> u16

Source

fn as_u32(self) -> u32

Source

fn as_u64(self) -> u64

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Usize for usize

Source§

fn as_u8(self) -> u8

Source§

fn as_u16(self) -> u16

Source§

fn as_u32(self) -> u32

Source§

fn as_u64(self) -> u64

Implementors§