You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I am torn. There are a bunch of structs with a .from() method. Which is fine. But they return a Result. Rust has a trait, From, which is for lossless conversions, ie, they return T, not Result<T, _>.
So maybe these should be from_something instead? Not 100% clear.
The text was updated successfully, but these errors were encountered:
So, I am torn. There are a bunch of structs with a
.from()
method. Which is fine. But they return aResult
. Rust has a trait,From
, which is for lossless conversions, ie, they returnT
, notResult<T, _>
.So maybe these should be
from_something
instead? Not 100% clear.The text was updated successfully, but these errors were encountered: