Beyond Basic References
摘要
This chapter takes a deeper look into references in Rust, moving beyond the basics to explore their full expressive power and subtle behaviors. It begins by examining the different types of references, clarifying the distinctions between immutable and mutable references and how they interact with ownership and borrowing rules. Next, it studies binding referenced variables and how they allow flexible yet controlled access to data.