#[repr(transparent)]
pub struct OutBytes(_);
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

source§

fn as_out_bytes(&self) -> &OutBytes

Performs the conversion.
source§

fn as_mut_out_bytes(&mut self) -> &mut OutBytes

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more