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§impl Debug for UnsafePattern
impl Debug for UnsafePattern
impl Eq for UnsafePattern
Source§impl PartialEq for UnsafePattern
impl PartialEq 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