Programming, Cloudflare, Rust, Serverless, Workers.
compilation cost? Turns out, there is. Dynamic dispatch and closures to the rescue Introducing Fn trait! In Rust, the Fn trait and friends (FnMut, FnOnce) are automatically implemented on eligible functions and closures. In case of a simple Fn case the restriction is that they must not modify their