Struct aligned_vec::ABox
source · [−]pub struct ABox<T: ?Sized> { /* private fields */ }
Expand description
Aligned box. See Box
for more info.
Implementations
sourceimpl<T: ?Sized> ABox<T>
impl<T: ?Sized> ABox<T>
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
sourceimpl<T: Ord + ?Sized> Ord for ABox<T>
impl<T: Ord + ?Sized> Ord for ABox<T>
sourceimpl<T: PartialOrd + ?Sized> PartialOrd<ABox<T>> for ABox<T>
impl<T: PartialOrd + ?Sized> PartialOrd<ABox<T>> for ABox<T>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl<T: Eq + ?Sized> Eq for ABox<T>
impl<T: Send> Send for ABox<T>
impl<T: Sync> Sync for ABox<T>
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for ABox<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Unpin for ABox<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for ABox<T> where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more