Rust 1.48
blog.rust-lang.org
Rust 1.48
1–10 of 119 posts
Re: Rust 1.48
#2Re: Rust 1.48
#3 let my_arr: [u32; 3] = my_vec.try_into().expect("msg");Re: Rust 1.48
#4Congratulations! The highlight for me is stable conversion from Vec to array: let my_arr: [u32; 3] = my_vec.try_into().expect("msg");
Re: Rust 1.48
#5One of the things that made me so excited about Rust when I first used it was the capabilities of the Rustdoc system. The built in examples that are also unit tests, the ease of just using markdown... and now the linking is even simpler. It’s one of my favorite things about the language, and I think is why so many crates have such good documentation, because it’s easy to do. (and it’s tested and validated so you know…
Re: Rust 1.48
#6Re: Rust 1.48
#7Congratulations! The highlight for me is stable conversion from Vec to array: let my_arr: [u32; 3] = my_vec.try_into().expect("msg");
Indeed, I can't wait for const generics to become available outside of std, I've been bumping into that limitation since pre-rust-1.0 days, it'll be amazing to finally be able to rewrite all that hacky code correctly.
Re: Rust 1.48
#8Earlier quoted context omitted.
Indeed, I can't wait for const generics to become available outside of std, I've been bumping into that limitation since pre-rust-1.0 days, it'll be amazing to finally be able to rewrite all that hacky code correctly.
min_const_generics is targeted for Rust 1.50 :)
Re: Rust 1.48
#9Congratulations! The highlight for me is stable conversion from Vec to array: let my_arr: [u32; 3] = my_vec.try_into().expect("msg");
Re: Rust 1.48
#10Congratulations! The highlight for me is stable conversion from Vec to array: let my_arr: [u32; 3] = my_vec.try_into().expect("msg");
Hmm. Could you do this kind of code for a static allocation at compile-time too?