Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

or_panic

Extract ok values from Rust results or panic with the contained error. This works with any error type that implements Display.

use or_panic::OrPanic as _;

println!("{:?}", Path::new("./foo.txt").canonicalize().or_panic());

About

Extract ok values from Rust results or panic with the contained error.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages