use std::ops::Deref; struct DerefExample<T> { value: T, } impl<T> Deref for ... 这是Rust唯一一个为你进行一个自动转换的地方,不过它增加了很多灵活性。
確定! 回上一頁