While this itself may be strictly true, most closures in Rust do not require any allocation at all, and will even possibly get inlined like any other function.
While this itself may be strictly true, most closures in Rust do not require any allocation at all, and will even possibly get inlined like any other function.