reth_primitives_traits::size

Trait InMemorySize

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

Trait for calculating a heuristic for the in-memory size of a struct.

Required Methods§

Source

fn size(&self) -> usize

Returns a heuristic for the in-memory size of a struct.

Implementations on Foreign Types§

Source§

impl InMemorySize for Header

Source§

fn size(&self) -> usize

Implementors§