Expand description
Prelude for this crate.
Re-exports§
pub use crate::FnPtr;pub use crate::SafeFnPtr;pub use crate::UnsafeFnPtr;pub use crate::abi;pub use crate::abi;pub use crate::abi;
Macros§
- abi
- Converts an ABI string like “C” into the corresponding value for use in const generics.
This is most useful for stable rust since there
u8s are used. - make_
safe - Convert a function-pointer type to the safe variant of the same signature. Arguments, return type, and ABI are preserved.
- make_
unsafe - Convert a function-pointer type to the unsafe variant of the same signature. Arguments, return type, and ABI are preserved.
- with_
abi - Construct a function-pointer type identical to the given one but using the specified ABI.