3 ms·
> Using variable-sized closures created at runtime requires dynamic allocation, While this itself may be strictly true, most closures in Rust do not require an
by steveklabnik 10y ago
> Using variable-sized closures created at runtime requires dynamic allocation,
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.