-
Rust와 C++ 같은 기능 표로 정리💕Rust Box는 C++의 Boxstd::unique_ptrC++ 와 같다.코딩Coding/★Rust★기초★Syntax 2023. 2. 10. 12:14728x90
Rust C++ Box Boxstd::unique_ptrC++ Rc - Like C++’s std::shared_ptr.
Boxstd::unique_ptrC++
https://google.github.io/comprehensive-rust/std/box.html
Box - Comprehensive Rust 🦀
Box is an owned pointer to data on the heap: fn main() { let five = Box::new(5); println!("five: {}", *five); } Box implements Deref , which means that you can call methods from T directly on a Box . Box is like std::unique_ptr in C++. In the above example
google.github.io
내 Github에 정리함
GitHub - YoungHaKim7/my_rust_project: My Youtube Channel - GlobalYoung https://www.youtube.com/@GlobalYoung7
My Youtube Channel - GlobalYoung https://www.youtube.com/@GlobalYoung7 - GitHub - YoungHaKim7/my_rust_project: My Youtube Channel - GlobalYoung https://www.youtube.com/@GlobalYoung7
github.com
https://github.com/YoungHaKim7/my_rust_project/01_Rust_Tutorial_Full_course/A_Cpp_Programmers_View_on_Rust
반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
Awesome Rust Books (0) 2023.02.19 rust-unofficial / awesome-rust: A curated list of Rust code & resources (0) 2023.02.19 Rust❤️How do I overwrite console output? (0) 2023.02.14 Two things that Rust does better than C++ (0) 2023.02.14 Rust❤️unofficial/awesome-rust: A curated list of Rust code and resources (0) 2023.02.04 가장 사랑받는 언어, Rust - 왜 러스트 인가? (0) 2023.02.03 [단편] 특이점이 왔다 - 만화로 그린 인공지능의 미래에 대한 이야기 | GeekNews (0) 2023.01.25 Rust 크로스 플랫폼 프로그래밍 | 인프콘 2022 (0) 2023.01.25