#[repr(align(65536))]pub struct Aligned64k<T> {
pub aligned: T,
}
Expand description
A thin wrapper type with an alignment of at least 64kB.
Fields§
§aligned: T
The aligned inner value.
Implementations§
Trait Implementations§
Source§impl<T> AsMut<T> for Aligned64k<T>
impl<T> AsMut<T> for Aligned64k<T>
Source§impl<T> AsRef<T> for Aligned64k<T>
impl<T> AsRef<T> for Aligned64k<T>
Source§impl<T> Borrow<T> for Aligned64k<T>
impl<T> Borrow<T> for Aligned64k<T>
Source§impl<T> BorrowMut<T> for Aligned64k<T>
impl<T> BorrowMut<T> for Aligned64k<T>
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: Clone> Clone for Aligned64k<T>
impl<T: Clone> Clone for Aligned64k<T>
Source§fn clone(&self) -> Aligned64k<T>
fn clone(&self) -> Aligned64k<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for Aligned64k<T>
impl<T: Debug> Debug for Aligned64k<T>
Source§impl<T: Default> Default for Aligned64k<T>
impl<T: Default> Default for Aligned64k<T>
Source§fn default() -> Aligned64k<T>
fn default() -> Aligned64k<T>
Returns the “default value” for a type. Read more
Source§impl<T: Hash> Hash for Aligned64k<T>
impl<T: Hash> Hash for Aligned64k<T>
Source§impl<T: Ord> Ord for Aligned64k<T>
impl<T: Ord> Ord for Aligned64k<T>
Source§fn cmp(&self, other: &Aligned64k<T>) -> Ordering
fn cmp(&self, other: &Aligned64k<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for Aligned64k<T>
impl<T: PartialEq> PartialEq for Aligned64k<T>
Source§impl<T: PartialOrd> PartialOrd for Aligned64k<T>
impl<T: PartialOrd> PartialOrd for Aligned64k<T>
impl<T: Copy> Copy for Aligned64k<T>
impl<T: Eq> Eq for Aligned64k<T>
impl<T> StructuralPartialEq for Aligned64k<T>
Auto Trait Implementations§
impl<T> Freeze for Aligned64k<T>where
T: Freeze,
impl<T> RefUnwindSafe for Aligned64k<T>where
T: RefUnwindSafe,
impl<T> Send for Aligned64k<T>where
T: Send,
impl<T> Sync for Aligned64k<T>where
T: Sync,
impl<T> Unpin for Aligned64k<T>where
T: Unpin,
impl<T> UnwindSafe for Aligned64k<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