pub trait Safety<I>:
Copy
+ Debug
+ Hash
+ Eqwhere
I: Interner<Safety = Self>,{
// Required methods
fn safe() -> Self;
fn unsafe_mode() -> Self;
fn is_safe(self) -> bool;
fn prefix_str(self) -> &'static str;
}Required Methods§
Sourcefn unsafe_mode() -> Self
fn unsafe_mode() -> Self
The unsafe safety mode.
Sourcefn prefix_str(self) -> &'static str
fn prefix_str(self) -> &'static str
The string prefix for this safety mode.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.