Typha (/ˈtaɪfə/) - A Tri-state Result/Option type
- Rust 100%
| src |
typha: Added filter and filter_err
|
|
| .gitattributes | Initial project stubs | |
| .gitignore | Initial project stubs | |
| Cargo.lock | Initial project stubs | |
| Cargo.toml | Initial project stubs | |
| CHANGELOG.md | Initial project stubs | |
| CODE_OF_CONDUCT.md | Initial project stubs | |
| LICENSE | Initial project stubs | |
| LICENSE.docs | Initial project stubs | |
| README.md | Initial project stubs | |
| rust-toolchain.toml | Initial project stubs | |
| rustfmt.toml | Initial project stubs | |
Typha
Typha (/ˈtaɪfə/) is a tri-state result type that is a fusion of the built-in Rust Result and Option types.
A common pattern in APIs that can fail, but also return no results is to have a Result<Option<T>, E>. The Typha<T, E> type offers equivalent functionality, but without the need to de-nest the types for some operations.
License
Typha is licensed under the BSD-3-Clause, the full text of which can be found in the LICENSE file in the root of the git repository.
The Vermilion documentation is licensed under the CC-BY-SA 4.0, the full text of which can be found in the LICENSE.docs file in the root of the git repository.