option-utils

A collection of utilities for working with Rust's Option type

Example

```rust use optionutils::OptionUtils; let mut x = Some("Hello world".toowned()); x.innermut(|s| s.push('!')); asserteq!(x, Some("Hello world!".to_owned()));

let path = Some("dir"); let path: Option = path.mapinto(); asserteq!(path, Some(std::path::Path::new("dir").to_owned()));

let num = Some(10u64); let num: Option = num.trymapinto()?; asserteq!(num, Some(10_u8));```

License

This project is licensed under the Apache-2.0 license.