trait Foo {} impl<F: FnOnce(&mut Cx) -> R, R> Foo for F {} みたいなトレイトFooがあったとき,関数 fn foo(f: impl Foo) を呼び出すときの foo(|_: &mut Cx| { // <== // do some stuff }) みたいな型注釈が面倒くさい(伝わって)
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
trait Foo {} impl<F: FnOnce(&mut Cx) -> R, R> Foo for F {} みたいなトレイトFooがあったとき,関数 fn foo(f: impl Foo) を呼び出すときの foo(|_: &mut Cx| { // <== // do some stuff }) みたいな型注釈が面倒くさい(伝わって)