pub enum CheckAlignment {
No,
Error,
FutureIncompat,
}
Variants§
No
Ignore alignment when following relocations. This is mainly used in interning.
Error
Hard error when dereferencing a misaligned pointer.
FutureIncompat
Emit a future incompat lint when dereferencing a misaligned pointer.
Implementations§
source§impl CheckAlignment
impl CheckAlignment
pub fn should_check(&self) -> bool
Trait Implementations§
source§impl Clone for CheckAlignment
impl Clone for CheckAlignment
source§fn clone(&self) -> CheckAlignment
fn clone(&self) -> CheckAlignment
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 CheckAlignment
Auto Trait Implementations§
impl RefUnwindSafe for CheckAlignment
impl Send for CheckAlignment
impl Sync for CheckAlignment
impl Unpin for CheckAlignment
impl UnwindSafe for CheckAlignment
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
No
: 0 bytesError
: 0 bytesFutureIncompat
: 0 bytes