reth::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 OpTransaction

§

fn size(&self) -> usize

§

impl InMemorySize for OpTransactionSigned

§

fn size(&self) -> usize

§

impl InMemorySize for OpTxType

Available on crate feature op only.
§

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 TxLegacy

§

fn size(&self) -> usize

§

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

§

fn size(&self) -> usize

Source§

impl<B> InMemorySize for BlockResponse<B>
where B: InMemorySize,

Source§

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

§

fn size(&self) -> usize

Implementors§