#[repr(C)]pub struct Aligned<A, T>where
T: ?Sized,{ /* private fields */ }
Expand description
A newtype with alignment of at least A
bytes
Trait Implementations§
Source§impl<A, T> AsMutSlice for Aligned<A, T>where
A: Alignment,
T: AsMutSlice,
impl<A, T> AsMutSlice for Aligned<A, T>where
A: Alignment,
T: AsMutSlice,
Source§fn as_mut_slice(&mut self) -> &mut [T::Element]
fn as_mut_slice(&mut self) -> &mut [T::Element]
Returns the mutable slice view of
Self
Source§impl<A, T> BorrowMut<T> for Aligned<A, T>where
A: Alignment,
impl<A, T> BorrowMut<T> for Aligned<A, T>where
A: Alignment,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<A, T> Ord for Aligned<A, T>where
A: Alignment,
T: Ord,
impl<A, T> Ord for Aligned<A, T>where
A: Alignment,
T: Ord,
Source§impl<A, T> PartialOrd for Aligned<A, T>where
A: Alignment,
T: PartialOrd,
impl<A, T> PartialOrd for Aligned<A, T>where
A: Alignment,
T: PartialOrd,
impl<A, T> Copy for Aligned<A, T>where
A: Alignment,
T: Copy,
impl<A, T> Eq for Aligned<A, T>where
A: Alignment,
T: Eq,
Auto Trait Implementations§
impl<A, T> Freeze for Aligned<A, T>where
T: Freeze + ?Sized,
A: Freeze,
impl<A, T> RefUnwindSafe for Aligned<A, T>where
T: RefUnwindSafe + ?Sized,
A: RefUnwindSafe,
impl<A, T> Send for Aligned<A, T>where
T: Send + ?Sized,
A: Send,
impl<A, T> Sync for Aligned<A, T>where
T: Sync + ?Sized,
A: Sync,
impl<A, T> Unpin for Aligned<A, T>where
T: Unpin + ?Sized,
A: Unpin,
impl<A, T> UnwindSafe for Aligned<A, T>where
T: UnwindSafe + ?Sized,
A: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)