4 ms·
I'm not a Rust expert but everywhere I could find heap::allocate it checks for null.
by sesutton 11y ago
I'm not a Rust expert but everywhere I could find heap::allocate it checks for null.
- rkangel 11y agoAny time you do Box::new() you are allocating memory. There is no way do report allocation failure from that - the program will panic.