-6 karma · joined Sep 10, 2023 (3y ago) · 4 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
They can decay to function pointers (`$(unsafe)? $(extern)? fn($(inp),*) $(-> $(output))?`, example: unsafe extern fn() -> i32), which you can freely cast between function pointers, `*const/mut T` pointers or `usize`s. https://doc.rust-lang.org/reference/types/function-pointer.h...