Why doesn't `Box::new` return an `Option`? – stackoverflow.com

I don't understand why Box::new doesn't return an Option. 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 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why doesn't `Box::new` return an `Option`? – stackoverflow.com"