| Crates.io | fn-coerce |
| lib.rs | fn-coerce |
| version | 0.1.1 |
| created_at | 2025-12-12 16:28:58.047778+00 |
| updated_at | 2025-12-17 14:28:10.876562+00 |
| description | Helper for fn pointer coercing. |
| homepage | |
| repository | https://github.com/NewYearPrism/fn-coerce |
| max_upload_size | |
| id | 1981810 |
| size | 9,259 |
fn() coercion
unsafe extern "system" fn function_item() {}
/// FnCo::<Parameter count, Is unsafe, ABI wrapped by lit_t macro>
let _fn_poiter = FnCo::<0, true, lit_t!("system")>::co(function_item);
This may be helpful when dealing with those crate which has abstraction over fn pointers. For example, closure-ffi.