debug_unwrap

Crates.iodebug_unwrap
lib.rsdebug_unwrap
version1.0.3
sourcesrc
created_at2023-04-05 19:37:55.778388
updated_at2023-04-09 14:25:29.8485
descriptionAdds the method debug_unwrap for when you just want to make it compile.
homepagehttps://lib.rs/debug_unwrap
repositoryhttps://github.com/Heavenston/debug_unwrap
max_upload_size
id831352
size6,785
Heavenstone (Heavenston)

documentation

https://docs.rs/debug_unwrap

README

debug_unwrap

Description

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).

Library Features

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.

Commit count: 14

cargo fmt