ToUsize in miri::helpers - Rust
Description: We don’t support 16-bit systems, so let’s have ergonomic conversion from `u32` to `usize`.

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

## Dyn Compatibility§

This trait is dyn compatible.

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

## Implementations on Foreign Types§

Source§

### impl ToUsize for u32

Source§

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

## Implementors§