SIGN IN SIGN UP
rust-lang / rustlings UNCLAIMED

:crab: Small exercises to get you used to reading and writing Rust code!

0 0 51 Rust

try_from_into.rs: Improve slice implementation

Using pattern matching, we can reduce four bound checks to just one.
E
Eugen committed
0bed579a4bbca0b788cef986da3cd5117f8cf94f
Parent: b5d440f
Committed by GitHub <noreply@github.com> on 11/29/2025, 10:24:55 AM