ResultExtensionsIntoRes Method

Overload List

IntoResT(OptT) Shorthand for mapping options to results as follows:
  • None<T> => Err<T> with a generic error message;
  • Some(T) => Ok(T).
IntoResT(OptT, String) Shorthand for mapping options to results as follows:
  • None<T> => Err<T> with the given error message;
  • Some(T) => Ok(T).

See Also