Why doesn't `Box::new` return an `Option` or `Result`?

Viewed 3238

I don't understand why Box::new doesn't return an Option or Result.

The allocation can fail because memory is not unlimited, or something else could happen; what is the behavior in such cases? I can't find any information about it.

4 Answers
Related