Crate re_unwrap

Crate re_unwrap 

Source

Macros§

unwrapo
Unwraps an Option, returning the value of type T, or printing to the stderr buffer the error text “Unknown error.” in case of is None.
unwrapo_msg
Unwraps an Option, returning the value of type T, or printing to the stderr buffer the error text as per the format string and its format arguments specified within the macros arguments in case is None.
unwrapo_ret
Unwraps an Option, returning the value of type T, or returning the specified expression from the current function in case is None.
unwrapr
Unwraps a Result<T, E>, returning the value of type T, or printing to the stderr buffer the error text as per the std::fmt::Display trait implemented for the error E.
unwrapr_msg
Unwraps a Result<T, E>, returning the value of type T, or printing to the stderr buffer the error text as per the format string and its format arguments specified within the macros arguments.
unwrapr_ret
Unwraps a Result<T, E>, returning the value of type T, or returning the specified expression from the current function in case of error.