Result
The outcome of something that can fail: Ok(value) or Err(error).
Result<T, E> is an enum with variants Ok(T) and Err(E) for operations that can fail.
Examples
"42".parse::<u8>()givesOk(42);"300".parse::<u8>()gives anErrof kindPosOverflow, because 300 doesn't fit in au8.
See also