pub struct OutBytes(/* private fields */);Expand description
A byte buffer that can only be written-into.
You shouldn’t concern yourself with this, just call BufEncoder::new with your array.
This prepares the API for potential future support of [MaybeUninit<u8>]. We don’t want to use
unsafe until it’s proven to be needed but if it does we have an easy, compatible upgrade
option.
Warning: repr(transparent) is an internal implementation detail and must not be
relied on!
Trait Implementations§
Source§impl AsOutBytes for OutBytes
impl AsOutBytes for OutBytes
Source§fn as_out_bytes(&self) -> &OutBytes
fn as_out_bytes(&self) -> &OutBytes
Performs the conversion.
Source§fn as_mut_out_bytes(&mut self) -> &mut OutBytes
fn as_mut_out_bytes(&mut self) -> &mut OutBytes
Performs the conversion.