reth_primitives_traits/size.rs
/// Trait for calculating a heuristic for the in-memory size of a struct.
#[auto_impl::auto_impl(&, Arc, Box)]
pub trait InMemorySize {
/// Returns a heuristic for the in-memory size of a struct.
fn size(&self) -> usize;
}
impl InMemorySize for alloy_consensus::Header {
fn size(&self) -> usize {
self.size()
}
}