#[repr(C)] struct List { members: *mut T, count: usize } struct A; struct B; #[no_mangle] pub extern "C" fn foo(a: List) { } #[no_mangle] pub extern "C" fn bar(b: List) { }