Skip to main content

HasSize

Trait HasSize 

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

The HasSize trait provides a function for getting the current byte size.

Required Methods§

Source

fn size(&self) -> u32

Get the current byte size.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl HasSize for ExternParameter

Source§

impl<T> HasSize for T
where T: AsRef<[u8]>,