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 OpDepositReceipt

Available on crate feature op only.
Source§

fn size(&self) -> usize

Source§

impl InMemorySize for OpPooledTransaction

Available on crate feature op only.
Source§

fn size(&self) -> usize

Source§

impl InMemorySize for OpTxType

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for OpTypedTransaction

Available on crate feature op only.
Source§

fn size(&self) -> usize

Source§

impl InMemorySize for PooledTransaction

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for Receipt

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxEip1559

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxEip2930

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxEip4844

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxEip7702

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxEip4844WithSidecar

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxHash

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxLegacy

Source§

fn size(&self) -> usize

Source§

impl InMemorySize for TxType

Source§

fn size(&self) -> usize

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

Source§

impl<T: InMemorySize> InMemorySize for Block<T>

Source§

fn size(&self) -> usize

Source§

impl<T: InMemorySize> InMemorySize for BlockBody<T>

Source§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the block body

Source§

impl<T: InMemorySize> InMemorySize for Signed<T>

Source§

fn size(&self) -> usize

Implementors§