Type Alias DstArrayUsize

Source
pub type DstArrayUsize<const CAP: usize> = DstArray<usize, CAP>;
Available on crate feature unsafe_layout only.
Expand description

A statically allocated buffer for storing DSTs with pointer alignment.

Aliased Type§

struct DstArrayUsize<const CAP: usize> { /* private fields */ }

Trait Implementations

Source§

impl<T: MemPod, const CAP: usize> ConstDefault for DstArray<T, CAP>

Source§

const DEFAULT: Self

Returns the compile-time “default value” for a type.
Source§

impl<T: MemPod, const CAP: usize> Default for DstArray<T, CAP>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T, const CAP: usize> Deref for DstArray<T, CAP>

Source§

type Target = Array<MaybeUninit<T>, CAP>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<T, const CAP: usize> DerefMut for DstArray<T, CAP>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<T: MemPod, const CAP: usize> DstBuf for DstArray<T, CAP>

Source§

type Inner = T

Inner type of the buffer
Source§

fn as_ref(&self) -> &[MaybeUninit<Self::Inner>]

Get the buffer slice as shared reference.
Source§

fn as_mut(&mut self) -> &mut [MaybeUninit<Self::Inner>]

Get the buffer slice as an exclusive reference.
Source§

fn extend(&mut self, len: usize) -> Result<(), ()>

Extend the buffer (fallible).
Source§

fn round_to_words(bytes: usize) -> usize

Convert a byte count to a word count (rounding up).