Skip to main content

Size

Trait Size 

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

Anything that has size.

Required Methods§

Source

fn size(&self) -> u32

Return size of this object (in bytes).

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 ()

Source§

fn size(&self) -> u32

Source§

impl Size for Vec<u8>

Source§

fn size(&self) -> u32

Implementors§