Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

閉包與迭代器

這一章會教到閉包與迭代器,這些功能結合使用了前面提到的許多語言功能,是比較進階難懂的主題,因此被放在第 5 章之後。儘管如此,他們在現實的 Rust 程式碼中仍然非常常見,因此如果想要讀懂真正的 Rust 程式碼,理解閉包與迭代器是必須的。