pub trait WithSafety<const SAFE: bool, F: FnPtr> {
type F: FnPtr;
}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, F: FnPtr> {
type F: FnPtr;
}Computes the function pointer type obtained by switching between safe/unsafe while preserving arity, ABI, and signature.