Abstract
Why there is a need for anonymous inline functions, with type inference for the arguments and the return value type, without having to write braces, and which can access the variables that are alive at the function definition point.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Carlo Milanesi
About this chapter
Cite this chapter
Milanesi, C. (2018). Defining Closures. In: Beginning Rust. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3468-6_13
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3468-6_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3467-9
Online ISBN: 978-1-4842-3468-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books