-
Rust] Deref Trait(dereference trait)코딩Coding/★Rust★기초★Syntax 2022. 3. 29. 19:10728x90
Treating Smart Pointers Like Regular References with the Deref Trait
Implementing the Deref trait allows you to customize the behavior of the dereference operator, * (as opposed to the multiplication or glob operator). By implementing Deref in such a way that a smart pointer can be treated like a regular reference, you can write code that operates on references and use that code with smart pointers too.
https://doc.rust-lang.org/stable/book/ch15-02-deref.html
스승님강의 영문
142_ Intro to the Deref trait(eng. ver.)
https://youtu.be/6WR7AiyU1cg
143_ Implementing Deref and DerefMut(eng. ver.)
https://youtu.be/C-CViDtRcaw
144_Implementing Deref weirdly(eng. ver.)
https://youtu.be/O7Ta07s3pNM
Easy rust한글
Kor117 : Deref trait
https://youtu.be/tFC8ZWvMDOE반응형'코딩Coding > ★Rust★기초★Syntax' 카테고리의 다른 글
bounded parametric polymorphism(매개 제한 다형성)개념 이해 (0) 2022.04.01 Rust] The Illustrated❤️Adventure Survival Guide for New Rustasceans- Lee Baillie (0) 2022.03.30 Rust, WebAssembly, and the future of Serverless by Steve Klabnik (0) 2022.03.30 Rust1.45버젼으로 Tutorial ㅡㅡ 기본적인거 볼만함-완전기초cargo를 안 씀 ㅡㅡ (0) 2022.03.29 Rust]general functional programming jargon(cons)“to cons x onto y”/은어 (콘스) (0) 2022.03.29 Rust] Quick ' ? ' Operator - danlogs (0) 2022.03.28 Belajar Rust#9- Mengenal Error Handling di Rust- Dev Activity (0) 2022.03.28 Rust - Boolean default = 기본은 false다 확인하는 방법 (0) 2022.03.28