try_or_panic

Function try_or_panic 

Source
pub fn try_or_panic<F, T, E>(action: F) -> T
where F: FnOnce() -> Result<T, E>, E: Into<Box<dyn Error + Send + Sync>>,
Expand description

Panics on Err, with debug-stringified payload. Returns the Ok value.