Analysis of information sources in references of the Wikipedia article "Rust (プログラミング言語)" in Japanese language version.
mut
in front of the variable name." The Rust Programming LanguageString
to the calling function so we can still use ... . Instead, we can provide a reference" References and Borrowing. The Rust Programming Language. 2022-12-24閲覧.&T
and &mut T
." Primitive Type reference. The Rust Standard Library. 2022-12-24閲覧.&type
" Pointer types. The Rust Reference. 2022-12-24閲覧.&
(shared borrow) ... operators" Operator expressions. The Rust Reference. 2022-12-24閲覧.&mut type
" Pointer types. The Rust Reference. 2022-12-24閲覧.&mut
(mutable borrow) operators" Operator expressions. The Rust Reference. 2022-12-24閲覧.&T
, regardless of the type of its referent: Copy
" Primitive Type reference. The Rust Standard Library. 2022-12-24閲覧.&mut T
references get all of the above except Copy
and Clone
(to prevent creating multiple simultaneous mutable borrows)" Primitive Type reference. The Rust Standard Library. 2022-12-24閲覧.