我看到它std::convert::Into有一个实现任何实现的东西std::convert::From:
std::convert::Into
std::convert::From
impl<T, U> Into<U> for T where U: From<T>
有更具体的实现From,虽然Into目前只有3个特定的实现,这使得它似乎是From默认实现的主流决定.我确信有些时候我只想实现Into而不是From,但我没有看到它们.
From
Into
rust
rust ×1