Locking
Locking
Posted Oct 2, 2024 10:45 UTC (Wed) by taladar (subscriber, #68407)In reply to: Locking by NYKevin
Parent article: Resources for learning Rust for kernel development
Couldn't you just force (assuming code doesn't panic or otherwise never return) the "give it back" semantics by making the type of the closure return the opaque type you pass in that the closure has no way to construct and so it is forced to return the one it got in its own parameter?
