0
1
arades

@feddit.ch

arades 1 point 3 years ago

box::new is pretty directly analogous to std::make_unique (factory for unique_ptr), in general rust’s heap allocating types map to c++’s smart pointer types, which are basically universally recommended over raw new/delete. So another column where rust just gives you the one best C++ feature where it still has 4 supported versions.

path: 0 6287626 6287848 6289568 6301848 6399840, hotness: undefined, score: 1, children: 0

thanks for using Leebra!

go to feed...