Skip to main content

Size

Trait Size 

Source
pub trait Size {
    // Required method
    fn to_usize(&self) -> usize;
}
Expand description

Marks the size type.

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 Size for UTerm

Source§

fn to_usize(&self) -> usize

Source§

impl<U, B> Size for UInt<U, B>
where U: Unsigned, B: Bit,

Source§

fn to_usize(&self) -> usize

Implementors§

Source§

impl Size for Dyn