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
Many code bases I see use transmute to convert raw bytes (&[u8]) to u32, f64, etc. - while they could, and probably should, use from_le_bytes or from_be_bytes.
The transmute docs include a lengthy section about Alternatives, but this obvious one seems to be missing.