gudenau on Nostr: What is the correct #Rust way to pass a structure of function pointers to C for it to ...
What is the correct #Rust way to pass a structure of function pointers to C for it to be populated? The naive way of just using function pointers doesn't seem to be correct because for some reason they can't be null even though other C-like pointers can be.
Published at
2025-03-18 00:53:02 UTCEvent JSON
{
"id": "f35617c55f921a1e7b2965242806964b96918ed7bd749b3e5961bc6be4d22fa2",
"pubkey": "db46a46e48fbb369dac7db115ec93ac88b3fd141eade8a6ba3e8e94e54ef0e9f",
"created_at": 1742259182,
"kind": 1,
"tags": [
[
"t",
"rust"
],
[
"proxy",
"https://fosstodon.org/@gudenau/114180697815975996",
"web"
],
[
"proxy",
"https://fosstodon.org/users/gudenau/statuses/114180697815975996",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/gudenau/statuses/114180697815975996",
"pink.momostr"
],
[
"-"
]
],
"content": "What is the correct #Rust way to pass a structure of function pointers to C for it to be populated? The naive way of just using function pointers doesn't seem to be correct because for some reason they can't be null even though other C-like pointers can be.",
"sig": "dac206399a4895d4437a848c38cb00ee5311cd55260a533b8dede02f5c10a4376c6c21fb2a6da7ccf483a04cf36b418c428f096f5f43590431d3f0862811eb07"
}