Expand description
Adds the method debug_unwrap for when you just want to make it compile. Not to be confused with the https://crates.io/crates/debug_unwraps crate.
This library adds the DebugUnwrap extension trait that adds the method debug_unwrap to the Option and Result types. It does exactly the same thing as the normal unwrap methods, but won’t exist when compiling without debug_assertions enabled (i.e. when not compiling in Debug mode).
There is also three other aliases that all have there respective library features of the same name to enable them:
- out (enabled by default)
- o
- peel
You can also use the deprecate
feature which makes the functions deprecated
on release mode instead of flat out not existing, so that your code will
compile but with warnings.
Traits§
- Debug
Unwrap - Extension trait for the Result and Option types, see crate-level documentation for more information.