AsSize

Trait AsSize 

Source
pub trait AsSize:
    Sized
    + Debug
    + Copy {
    // Required method
    fn as_size(self) -> usize;
}
Expand description

Types which can be converted to a usize Size.

Required Methods§

Source

fn as_size(self) -> usize

Convert to a usize Size.

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 AsSize for i8

Source§

impl AsSize for i16

Source§

impl AsSize for i32

Source§

impl AsSize for i64

Source§

impl AsSize for isize

Source§

impl AsSize for u8

Source§

impl AsSize for u16

Source§

impl AsSize for u32

Source§

impl AsSize for u64

Source§

impl AsSize for usize

Source§

impl<T> AsSize for &T
where T: AsSize,

Implementors§