pub trait WithSafety<const SAFE: bool> {
type F: FnPtr + HasSafety<SAFE>;
}Expand description
Computes the function pointer type obtained by switching between safe/unsafe while preserving arity, ABI, and signature.
pub trait WithSafety<const SAFE: bool> {
type F: FnPtr + HasSafety<SAFE>;
}Computes the function pointer type obtained by switching between safe/unsafe while preserving arity, ABI, and signature.