Rust functions are a bit more complicated than described
Rust functions are a bit more complicated than described
Posted Oct 23, 2025 22:20 UTC (Thu) by daroc (editor, #160859)In reply to: Rust functions are a bit more complicated than described by NYKevin
Parent article: DebugFS on Rust
Posted Oct 26, 2025 14:31 UTC (Sun)
by pbonzini (subscriber, #60935)
[Link]
The Rust wrappers for QEMU callbacks take the target Rust function as a type parameter, and a utility trait is added to Fn that causes a compiler error if that function is not zero-sized (https://lists.nongnu.org/archive/html/qemu-rust/2024-12/m...).
Rust functions are a bit more complicated than described
