-
Consumes and leaks the Box, returning a mutable reference, &'a mut T.코딩Coding/★Rust★기초★Syntax 2022. 4. 17. 20:35728x90
Consumes and leaks the Box, returning a mutable reference, &'a mut T.
Note that the type T must outlive the chosen lifetime 'a. If the type has only static references, or none at all, then this may be chosen to be 'static.
https://doc.rust-lang.org/std/boxed/struct.Box.html
Box in std::boxed - Rust
Consumes and leaks the Box, returning a mutable reference, &'a mut T. Note that the type T must outlive the chosen lifetime 'a. If the type has only static references, or none at all, then this may be chosen to be 'static. This function is mainly useful fo
doc.rust-lang.org
easy rust
프로그래밍 언어 러스트를 배웁시다! 150 Easy Rust in Korean: Leaking Boxes
반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
rust) async / await (0) 2022.04.19 rust) std::u64(64비트는 약 1천경) (0) 2022.04.18 rust) DST(Dynamically Sized Types, 동적 크기 타입) (0) 2022.04.18 rust-주석과 변수타입 (0) 2022.04.18 Rust's Rules Are Made to Be Broken(warp blog) (0) 2022.04.16 Rust]유니코드 출력하는 방법 Unicode print (0) 2022.04.14 rust 비교 연산test == != string 비교하기eq, ne (0) 2022.04.14 Rust) What are the differences between String and str?차이점String vs str (0) 2022.04.13