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<'a, T: 'a + InMemorySize + ?Sized> InMemorySize for &'a T

Source§

fn size(&self) -> usize

Source§

impl<T: InMemorySize + ?Sized> InMemorySize for Box<T>

Source§

fn size(&self) -> usize

Source§

impl<T: InMemorySize + ?Sized> InMemorySize for Arc<T>

Source§

fn size(&self) -> usize

Implementors§