iterator Posted on July 7, 2020 本文总阅读量次 iteratoriterator trait主要是为了for循环使用而设计。for循环默认使用into_iter() into_iter, iter and iter_mut iter: borrow each element into_iter: cousumes the collection iter_mut: mutably borrows each element of the collection Newer match和deconstructuring解构 Older closure闭包