fn-coerce

Crates.iofn-coerce
lib.rsfn-coerce
version0.1.1
created_at2025-12-12 16:28:58.047778+00
updated_at2025-12-17 14:28:10.876562+00
descriptionHelper for fn pointer coercing.
homepage
repositoryhttps://github.com/NewYearPrism/fn-coerce
max_upload_size
id1981810
size9,259
NewYearPrism (NewYearPrism)

documentation

README

fn coerce

fn() coercion

Example

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.

Commit count: 0

cargo fmt