pub enum UnsafePattern {
RawPointerDeref,
Transmute,
Assembly,
FfiCall,
UnionAccess,
MutableStatic,
Other,
}Expand description
Categories of unsafe patterns
Variants§
RawPointerDeref
Raw pointer dereference (*ptr)
Transmute
Type transmutation
Assembly
Inline assembly
FfiCall
FFI call
UnionAccess
Union field access
MutableStatic
Mutable static access
Other
Other unsafe operation
Trait Implementations§
Source§impl Clone for UnsafePattern
impl Clone for UnsafePattern
Source§fn clone(&self) -> UnsafePattern
fn clone(&self) -> UnsafePattern
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 Debug for UnsafePattern
impl Debug for UnsafePattern
Source§impl PartialEq for UnsafePattern
impl PartialEq for UnsafePattern
impl Eq for UnsafePattern
impl StructuralPartialEq for UnsafePattern
Auto Trait Implementations§
impl Freeze for UnsafePattern
impl RefUnwindSafe for UnsafePattern
impl Send for UnsafePattern
impl Sync for UnsafePattern
impl Unpin for UnsafePattern
impl UnsafeUnpin for UnsafePattern
impl UnwindSafe for UnsafePattern
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