Crates.io | debug_unwrap |
lib.rs | debug_unwrap |
version | 1.0.3 |
source | src |
created_at | 2023-04-05 19:37:55.778388 |
updated_at | 2023-04-09 14:25:29.8485 |
description | Adds the method debug_unwrap for when you just want to make it compile. |
homepage | https://lib.rs/debug_unwrap |
repository | https://github.com/Heavenston/debug_unwrap |
max_upload_size | |
id | 831352 |
size | 6,785 |
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.