Type Alias reth_codecs::CompactPlaceholder

source ·
pub type CompactPlaceholder = ();
Expand description

To be used with Option<CompactPlaceholder> to place or replace one bit on the bitflag struct.

Trait Implementations§

source§

impl Compact for CompactPlaceholder

source§

fn to_compact<B>(&self, _: &mut B) -> usize
where B: BufMut + AsMut<[u8]>,

Takes a buffer which can be written to. Ideally, it returns the length written to.
source§

fn from_compact(buf: &[u8], _: usize) -> (Self, &[u8])

Takes a buffer which can be read from. Returns the object and buf with its internal cursor advanced (eg..advance(len)). Read more
source§

fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
where B: BufMut + AsMut<[u8]>,

“Optional”: If there’s no good reason to use it, don’t.
source§

fn specialized_from_compact(buf: &[u8], len: usize) -> (Self, &[u8])

“Optional”: If there’s no good reason to use it, don’t.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes