Processable

Trait Processable 

Source
pub trait Processable:
    Clone
    + Serialize
    + DeserializeOwned {
    // Required method
    fn get_size(&self) -> usize;
}
Expand description

Output trait for record processing

Required Methods§

Source

fn get_size(&self) -> usize

Any additional in-memory size taken by the processed type

Do not include stack size (std::mem::size_of)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Processable for u8

Source§

fn get_size(&self) -> usize

Source§

impl Processable for usize

Source§

fn get_size(&self) -> usize

Source§

impl<Item: Sized + Processable> Processable for Vec<Item>

Source§

fn get_size(&self) -> usize

Source§

impl<Item: Processable> Processable for Option<Item>

Source§

fn get_size(&self) -> usize

Source§

impl<Item: Processable, Error: Processable> Processable for Result<Item, Error>

Source§

fn get_size(&self) -> usize

Implementors§