HasSafety

Trait HasSafety 

Source
pub trait HasSafety<Safety: Safety> { }
Expand description

Marker trait denoting the safety of a function pointer type.

For example:

  • HasSafety<Safe> for extern "C" fn(...)
  • HasSafety<Unsafe> for unsafe fn(...)

Implementors§

Source§

impl<F: FnPtr> HasSafety<<F as FnPtr>::SafetyMarker> for F