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
impl Compact for CompactPlaceholder
Source§fn to_compact<B>(&self, _: &mut B) -> usize
fn to_compact<B>(&self, _: &mut B) -> usize
Takes a buffer which can be written to. Ideally, it returns the length written to.
Source§fn from_compact(buf: &[u8], _: usize) -> (Self, &[u8])
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 moreSource§fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
fn specialized_to_compact<B>(&self, buf: &mut B) -> usize
“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