Struct bern_kernel::stack::Aligned
source · [−]#[repr(C)]pub struct Aligned<A, T> where
T: ?Sized, { /* private fields */ }
Expand description
A newtype with alignment of at least A
bytes
Copied from https://docs.rs/aligned/0.3.4/aligned/
Note: The alignment structs are dependent on the memory protection hardware and must thus be implemented in the architecture specific code. e.g.:
ⓘ
#[repr(align(64))]
pub struct A64;
#[repr(align(1_024))]
pub struct A1K;
Trait Implementations
Auto Trait Implementations
impl<A, T: ?Sized> RefUnwindSafe for Aligned<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T: ?Sized> Send for Aligned<A, T> where
A: Send,
T: Send,
impl<A, T: ?Sized> Sync for Aligned<A, T> where
A: Sync,
T: Sync,
impl<A, T: ?Sized> Unpin for Aligned<A, T> where
A: Unpin,
T: Unpin,
impl<A, T: ?Sized> UnwindSafe for Aligned<A, T> where
A: UnwindSafe,
T: UnwindSafe,
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