Rust 除了AsRef以外,还提供了一个Borrow的Trait,这两个Trait的意图非常接近,以 ... Sized>{ fn as_ref(&self)-> &T ; } trait Borrow<Borrowed: ?
確定! 回上一頁