lenient_bool

Crates.iolenient_bool
lib.rslenient_bool
version0.1.1
sourcesrc
created_at2016-11-18 19:59:30.461695
updated_at2016-11-18 22:45:41.045254
descriptionA bool parser that is more accepting of various string bool representations.
homepage
repositoryhttps://github.com/dimfeld/rust_lenient_bool
max_upload_size
id7294
size19,673
Daniel Imfeld (dimfeld)

documentation

https://docs.rs/lenient_bool

README

LenientBool

crates.io

This crate provides the LenientBool type, which converts the following values into a boolean:

  • true
  • false
  • t
  • f
  • 0
  • 1

Comparisons are case-insensitive, so TRUE, tRue, and T all work, for example.

Documentation

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 11

cargo fmt