pub trait Safety { const IS_SAFE: bool; }
Type-level marker trait for function safety, either Safe or Unsafe.
Safe
Unsafe
true for safe functions, false for unsafe ones.
true
false
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.