Trait ToUsize

Source
pub trait ToUsize:
    Sized
    + TryInto<usize>
    + TryInto<i128>
    + Copy {
    // Provided method
    fn usize(self) -> Result<usize, MathError> { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToUsize for i16

Source§

impl ToUsize for i32

Source§

impl ToUsize for i64

Source§

impl ToUsize for u8

Source§

impl ToUsize for u16

Source§

impl ToUsize for u32

Source§

impl ToUsize for u64

Source§

impl ToUsize for usize

Implementors§