pub enum AlignmentMode {
Aligned(u64),
Unaligned,
Standard,
}
Variants§
Aligned(u64)
Always check that memory accesses are aligned to the given size. Generates a #GP exception if the check fails.
Unaligned
No alignment checking performed, as the instruction supports unaligned accesses.
Standard
If the alignment check flags are set, and we are in user mode, then check that memory accesses are aligned to their length. Generates an #AC exception if the check fails.
Trait Implementations§
Source§impl Clone for AlignmentMode
impl Clone for AlignmentMode
Source§fn clone(&self) -> AlignmentMode
fn clone(&self) -> AlignmentMode
Returns a copy 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 moreimpl Copy for AlignmentMode
Auto Trait Implementations§
impl Freeze for AlignmentMode
impl RefUnwindSafe for AlignmentMode
impl Send for AlignmentMode
impl Sync for AlignmentMode
impl Unpin for AlignmentMode
impl UnwindSafe for AlignmentMode
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