Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/Rust/Rust Grammar/Rust Type/Rust Function/
Rust Closure
Search

Rust Closure

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2022 Jun 20 2:39
Editor
Editor
Seonglae ChoSeonglae Cho
Edited
Edited
2024 Mar 29 4:51
Refs
Refs

Anonymous Function that captures their environment

 
 
 
 
 
The Rust Programming Language
Rust's closures are anonymous functions you can save in a variable or pass as arguments to other functions. You can create the closure in one place and then call the closure to evaluate it in a different context. Unlike functions, closures can capture values from the scope in which they're defined.
The Rust Programming Language
https://doc.rust-lang.org/book/ch13-01-closures.html
 
 

Backlinks

Rust first-class object

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/Rust/Rust Grammar/Rust Type/Rust Function/
Rust Closure
Copyright Seonglae Cho