[][src]Struct aligned_bytes::AlignedBytes

pub struct AlignedBytes { /* fields omitted */ }

A continuous fixed-length byte array with a specified alignment.

Implementations

impl AlignedBytes[src]

pub fn new_zeroed(len: usize, align: usize) -> Self[src]

Allocate a zero-initialized byte array with an exact alignment.

pub fn alignment(&self) -> usize[src]

Returns the alignment of the byte array.

Trait Implementations

impl AsMut<[u8]> for AlignedBytes[src]

impl AsRef<[u8]> for AlignedBytes[src]

impl Debug for AlignedBytes[src]

impl Deref for AlignedBytes[src]

type Target = [u8]

The resulting type after dereferencing.

impl DerefMut for AlignedBytes[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.