reth_codecs

Type Alias 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