Named `Fn` trait parameters by JonathanBrouwer · Pull Request #3955 · rust-lang/rfcs · GitHub
DRANK

View all comments Allow (optional) named function parameters in parenthesized generic argument lists, such as those of Fn, FnMut, FnOnce, AsyncFn, AsyncFnMut, and AsyncFnOnce. For example: fn par...

github.com
Related Topics: GitHub Rust Git
1 comments
  • log: impl Fn(String, usize)

    log: impl Fn(msg: String, priority: usize)
    と書けるのね。いいじゃん

    Named Fn trait parameters by JonathanBrouwer · Pull Request #3955 · rust-lang/rfcs
    github.com/rust-lang/rfcs…