Skip to main content

Size

Type Alias Size 

Source
pub type Size = usize;
Expand description

The “size” type used by len(), equal to usize on this platform.

Trait Implementations§

Source§

impl SizeExt for Size

Source§

fn from_i64(value: i64) -> Self

Create a new Size instance from an i64 value.
Source§

fn from_u64(value: u64) -> Self

Create a new Size instance from an u64 value.
Source§

fn to_u64(self) -> u64

Convert this Size instance to an u64 value.
Source§

fn to_usize(self) -> Option<usize>

Convert this Size instance to an usize value, if possible.