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 OpDepositReceipt

§

fn size(&self) -> usize

§

impl InMemorySize for OpPooledTransaction

§

fn size(&self) -> usize

§

impl InMemorySize for OpReceipt

§

fn size(&self) -> usize

§

impl InMemorySize for OpTransactionSigned

§

fn size(&self) -> usize

§

impl InMemorySize for OpTxType

§

fn size(&self) -> usize

§

impl InMemorySize for OpTypedTransaction

§

fn size(&self) -> usize

§

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

§

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 Vec<T>
where T: InMemorySize,

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

§

impl<T, H> InMemorySize for Block<T, H>

§

fn size(&self) -> usize

§

impl<T, H> InMemorySize for BlockBody<T, H>

§

fn size(&self) -> usize

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

Implementors§