yohhoyの日記

技術的メモをしていきたい日記

2016-01-06から1日間の記事一覧

ラムダ式はFnOnce/FnMut/Fnトレイト実装の糖衣構文

プログラミング言語Rustのラムダ式(lambda expression)は、トレイトFnOnce / FnMut / Fn を実装(impl)したクロージャ(closure)を作り出す、一種の糖衣構文(syntax sugar)として機能する。 Closure implementation Rust's implementation of closures is a bi…