|
|
Log in / Subscribe / Register

Rust functions are a bit more complicated than described

Rust functions are a bit more complicated than described

Posted Oct 26, 2025 14:31 UTC (Sun) by pbonzini (subscriber, #60935)
In reply to: Rust functions are a bit more complicated than described by daroc
Parent article: DebugFS on Rust

For what it's worth, the same function type "rematerialization" is quite pervasive in QEMU's experimental Rust bindings.

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...).


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds