Why stable Rust supports fallible memory allocation for collections (```Vec```, ```VecDeque```) but not single objects (```Box```, ```Arc```)?

⚓ Rust    📅 2025-09-04    👤 surdeus    👁️ 12      

surdeus

Warning

This post was published 89 days ago. The information described in this article may have changed.

Hello everyone!

Recently, I've noticed that fallible memory allocation API is unstable for Box, Rc, Arc, but is stable for Vec, VecDeque, etc. I wonder, what is the reason for such decision?

3 posts - 3 participants

Read full topic

🏷️ Rust_feed