Skip to main content

try_from

Macro try_from 

Source
macro_rules! try_from {
    ($t:ty) => { ... };
}
Expand description

Fallible twin of from!: .input(try_from!(i32)) requires i32: TryInto<T>; an Err routes to the caller’s error handler. With with, the callable returns Result and must state its error type via error.