pub fn or_drop<T>(x: T) -> Result<Box<T>, Error>
Attempt to move x to a heap allocation, immediately dropping x on failure, and returning a useful Error.
x
Error
See crate documentation for more.