Skip to main content

ByteSized

Trait ByteSized 

Source
pub trait ByteSized {
    // Required method
    fn estimated_bytes(&self) -> u64;
}
Expand description

Values that can report an estimated in-memory byte footprint.

Required Methods§

Source

fn estimated_bytes(&self) -> u64

Return the estimated memory footprint in bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§