原书出处
Rust 程序设计(第2版)
13 实用工具特型 13.5 Deref 与 DerefMut
deref 方法会接受 &Self 引用并返回 &Self::Target 引用,而 deref_mut 方法会接受 &mut Self 引用并返回 &mut Self::Target 引用。
Target 应该是 Self 包含、拥有或引用的资源:
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Rust 程序设计(第2版)/_epub-src/OEBPS/Text/part0000.xhtml
EPUB SHA-256:98f790484f9bffb9ef96f9568b4a86006e3b6a96f7c0c81b7406b60f16712e85