Function try_new
pub fn try_new<T>(value: <T as TryNew>::Value) -> Result<T, OutOfMemory>where
T: TryNew,Expand description
Helper function to invoke <T as TryNew>::try_new.
ยงExample
let boxed = try_new::<Box<u32>>(36)?;
assert_eq!(*boxed, 36);