https://github.com/demindiro/unwrap_none
Implements the `unwrap_none` and `expect_none` methods removed by https://github.com/rust-lang/rust/pull/83349
https://github.com/demindiro/unwrap_none
Last synced: over 1 year ago
JSON representation
Implements the `unwrap_none` and `expect_none` methods removed by https://github.com/rust-lang/rust/pull/83349
- Host: GitHub
- URL: https://github.com/demindiro/unwrap_none
- Owner: Demindiro
- License: mit
- Created: 2021-04-13T12:11:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T17:01:25.000Z (over 3 years ago)
- Last Synced: 2025-03-04T09:16:20.254Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## How to use
```rust
use unwrap_none::UnwrapNone;
fn main() {
None.unwrap_none();
None.expect_none("Value is not None");
}
```