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 far my code has been doing Self::from(360) instead, hence the From<u16> bound.
But now that I've seen this, I would like to use From<u8> instead, which is less restrictive.
The text was updated successfully, but these errors were encountered:
The
num-traits
crate has an interesting way to convert radians to degrees. It boils down to this :So far my code has been doing
Self::from(360)
instead, hence theFrom<u16>
bound.But now that I've seen this, I would like to use
From<u8>
instead, which is less restrictive.The text was updated successfully, but these errors were encountered: