pub struct AlignedMemory<const ALIGN: usize> { /* private fields */ }Implementations§
Source§impl<const ALIGN: usize> AlignedMemory<ALIGN>
impl<const ALIGN: usize> AlignedMemory<ALIGN>
pub fn new(sz_u64: usize) -> Self
pub fn extend(&mut self, new_size: usize)
pub fn insert(&mut self, index: usize, element: u64)
pub fn as_slice(&self) -> &[u64]
pub fn as_mut_slice(&mut self) -> &mut [u64]
pub unsafe fn as_ptr(&self) -> *const u64
pub unsafe fn as_mut_ptr(&mut self) -> *mut u64
pub fn len(&self) -> usize
Trait Implementations§
Source§impl<const ALIGN: usize> Clone for AlignedMemory<ALIGN>
impl<const ALIGN: usize> Clone for AlignedMemory<ALIGN>
Source§impl<const ALIGN: usize> Drop for AlignedMemory<ALIGN>
impl<const ALIGN: usize> Drop for AlignedMemory<ALIGN>
impl<const ALIGN: usize> Send for AlignedMemory<ALIGN>
impl<const ALIGN: usize> Sync for AlignedMemory<ALIGN>
Auto Trait Implementations§
impl<const ALIGN: usize> Freeze for AlignedMemory<ALIGN>
impl<const ALIGN: usize> RefUnwindSafe for AlignedMemory<ALIGN>
impl<const ALIGN: usize> Unpin for AlignedMemory<ALIGN>
impl<const ALIGN: usize> UnsafeUnpin for AlignedMemory<ALIGN>
impl<const ALIGN: usize> UnwindSafe for AlignedMemory<ALIGN>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more