Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
est31
on Nov 19, 2020
|
parent
|
context
|
favorite
| on:
Rust 1.48
> TryInto is already implemented for slices in 1.47, so `let foo = u16::from_be_bytes(some_slice.try_into().unwrap());` would work before 1.48.
Rustdocs say it was 1.36 even?
https://doc.rust-lang.org/nightly/std/primitive.array.html#i...
antonf
on Nov 19, 2020
[–]
Yeah, by "In 1.47" I mean that as of 1.47 it was already implemented, didn't check since which version.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Rustdocs say it was 1.36 even? https://doc.rust-lang.org/nightly/std/primitive.array.html#i...