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

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

surdeus

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