Enum DecodingBuffer

pub enum DecodingBuffer<'a>

Variants

U8(&'a mut [u8])

A slice of unsigned bytes

U16(&'a mut [u16])

A slice of unsigned words

U32(&'a mut [u32])

A slice of 32 bit unsigned ints

U64(&'a mut [u64])

A slice of 64 bit unsigned ints

F16(&'a mut [f16])

A slice of 16 bit IEEE floats

F32(&'a mut [f32])

A slice of 32 bit IEEE floats

F64(&'a mut [f64])

A slice of 64 bit IEEE floats

I8(&'a mut [i8])

A slice of 8 bits signed ints

I16(&'a mut [i16])

A slice of 16 bits signed ints

I32(&'a mut [i32])

A slice of 32 bits signed ints

I64(&'a mut [i64])

A slice of 64 bits signed ints

Implementations

impl<'a> DecodingBuffer<'a>

fn as_bytes(&self) -> &[u8]
fn as_bytes_mut(&mut self) -> &mut [u8]
fn byte_len(&self) -> usize

Auto Trait Implementations

impl<'a> !UnwindSafe for DecodingBuffer<'a>

impl<'a> Freeze for DecodingBuffer<'a>

impl<'a> RefUnwindSafe for DecodingBuffer<'a>

impl<'a> Send for DecodingBuffer<'a>

impl<'a> Sync for DecodingBuffer<'a>

impl<'a> Unpin for DecodingBuffer<'a>

impl<'a> UnsafeUnpin for DecodingBuffer<'a>

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DecodingBuffer<'a> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DecodingBuffer<'a> where ST: ?Sized, DT: ?Sized,

impl<T> Any for DecodingBuffer<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for DecodingBuffer<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for DecodingBuffer<'a> where T: ?Sized,

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

impl<T> From<T> for DecodingBuffer<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for DecodingBuffer<'a> where T: ?Sized,

impl<T, U> Into<U> for DecodingBuffer<'a> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for DecodingBuffer<'a> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for DecodingBuffer<'a> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>