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.

Implementors§

source§

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