reth_node_core::primitives::size

Trait InMemorySize

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§

fn size(&self) -> usize

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

Implementations on Foreign Types§

§

impl InMemorySize for FixedBytes<32>

§

fn size(&self) -> usize

§

impl InMemorySize for OpDepositReceipt

Available on crate feature op only.
§

fn size(&self) -> usize

§

impl InMemorySize for OpPooledTransaction

Available on crate feature op only.
§

fn size(&self) -> usize

§

impl InMemorySize for OpTxType

§

fn size(&self) -> usize

§

impl InMemorySize for OpTypedTransaction

Available on crate feature op only.
§

fn size(&self) -> usize

§

impl InMemorySize for PooledTransaction

§

fn size(&self) -> usize

§

impl InMemorySize for Receipt

§

fn size(&self) -> usize

§

impl InMemorySize for Receipt

§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the [Receipt].

§

impl InMemorySize for Transaction

§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the [Transaction].

§

impl InMemorySize for TransactionSigned

§

fn size(&self) -> usize

Calculate a heuristic for the in-memory size of the [TransactionSigned].

§

impl InMemorySize for TxEip1559

§

fn size(&self) -> usize

§

impl InMemorySize for TxEip2930

§

fn size(&self) -> usize

§

impl InMemorySize for TxEip4844

§

fn size(&self) -> usize

§

impl InMemorySize for TxEip7702

§

fn size(&self) -> usize

§

impl InMemorySize for TxEip4844WithSidecar

§

fn size(&self) -> usize

§

impl InMemorySize for TxLegacy

§

fn size(&self) -> usize

§

impl InMemorySize for TxType

§

fn size(&self) -> usize

§

impl InMemorySize for TxType

§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the [TxType].

§

impl<'a, T> InMemorySize for &'a T
where T: 'a + InMemorySize + ?Sized,

§

fn size(&self) -> usize

Source§

impl<H, B> InMemorySize for BlockResponse<H, B>

Source§

fn size(&self) -> usize

§

impl<H, B> InMemorySize for SealedBlock<H, B>

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the [Block].

§

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

§

fn size(&self) -> usize

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

§

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

§

fn size(&self) -> usize

Calculates a heuristic for the in-memory size of the [BlockBody].

§

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

§

fn size(&self) -> usize

Implementors§