#[repr(align(512))]pub struct Align512<T>(pub T);🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
Expand description
Wrapper struct to force 512-byte alignment.
Tuple Fields§
§0: T🔬This is a nightly-only experimental API. (
sgx_platform #56975)Auto Trait Implementations§
impl<T> Freeze for Align512<T>where
T: Freeze,
impl<T> RefUnwindSafe for Align512<T>where
T: RefUnwindSafe,
impl<T> Send for Align512<T>where
T: Send,
impl<T> Sync for Align512<T>where
T: Sync,
impl<T> Unpin for Align512<T>where
T: Unpin,
impl<T> UnsafeUnpin for Align512<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Align512<T>where
T: UnwindSafe,
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
Source§impl<T> UserSafeCopyDestination<T> for T
impl<T> UserSafeCopyDestination<T> for T
Source§fn as_mut_ptr(&mut self) -> *mut T
fn as_mut_ptr(&mut self) -> *mut T
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
Returns a pointer for writing to the value.