only_one 0.1.0

Provides the OnlyOne trait, which allows less nesting when chaining results
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 11.09 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.26 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • przb/only-one
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • przb

Only One

Extra functionality to reduce nesting with result chaining.

How to use with Cargo:

[dependencies]
only_one = "0.1.0"

How to use in your crate:

use only_one::OnlyOne;

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 https://www.apache.org/licenses/LICENSE-2.0 or the MIT license https://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.