Skip to main content

## ToUsize

# Trait ToUsize

Source

    pub trait ToUsize {
        // Required method
        fn to_usize(self) -> usize;
    }

Expand description

We don’t support 16-bit systems, so let’s have ergonomic conversion from `u32` to `usize`.

## Required Methods§

Source

#### fn to_usize(self) -> usize

## Implementations on Foreign Types§

Source§

### impl ToUsize for u32

Source§

#### fn to_usize(self) -> usize

## Implementors§