Struct aligned_vec::ABox
source · pub struct ABox<T: ?Sized, A: Alignment = ConstAlign<CACHELINE_ALIGN>> { /* private fields */ }
Expand description
Aligned box. See Box
for more info.
Implementations§
source§impl<T: ?Sized, A: Alignment> ABox<T, A>
impl<T: ?Sized, A: Alignment> ABox<T, A>
sourcepub unsafe fn from_raw_parts(align: usize, ptr: *mut T) -> Self
pub unsafe fn from_raw_parts(align: usize, ptr: *mut T) -> Self
Creates a new ABox<T>
from its raw parts.
§Safety
The arguments to this function must be acquired from a previous call to
Self::into_raw_parts
.
sourcepub fn into_raw_parts(self) -> (*mut T, usize)
pub fn into_raw_parts(self) -> (*mut T, usize)
Decomposes a ABox<T>
into its raw parts: (ptr, alignment)
.
Trait Implementations§
source§impl<T: Ord + ?Sized, A: Alignment> Ord for ABox<T, A>
impl<T: Ord + ?Sized, A: Alignment> Ord for ABox<T, A>
source§impl<T: PartialEq + ?Sized, A: Alignment> PartialEq for ABox<T, A>
impl<T: PartialEq + ?Sized, A: Alignment> PartialEq for ABox<T, A>
source§impl<T: PartialOrd + ?Sized, A: Alignment> PartialOrd for ABox<T, A>
impl<T: PartialOrd + ?Sized, A: Alignment> PartialOrd for ABox<T, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Eq + ?Sized, A: Alignment> Eq for ABox<T, A>
impl<T: ?Sized + Send, A: Alignment + Send> Send for ABox<T, A>
impl<T: ?Sized + Sync, A: Alignment + Sync> Sync for ABox<T, A>
Auto Trait Implementations§
impl<T, A> Freeze for ABox<T, A>
impl<T, A> RefUnwindSafe for ABox<T, A>
impl<T, A> Unpin for ABox<T, A>
impl<T, A> UnwindSafe for ABox<T, A>
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