From trait has this example, which I’m not understanding. It looks like the only possible return type of the example function is
Ok(i32). I’m not sure where
CliError would ever happen since everything else is just unwrapped.
Wouldn’t the program 100% of the time either panic or return an
Ok(i32)? I thought the point was to implement
From for the enum variants and then return one of those variants at some point.