better-conversions 0.2.2

Safe and explicit numeric conversions with range and precision checking
Documentation
  • Coverage
  • 5.56%
    2 out of 36 items documented0 out of 33 items with examples
  • Size
  • Source code size: 33.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Lozlof/better-conversions
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Lozlof

better-conversions

Safe and explicit numeric conversions with range and precision checking

use better_conversions::prelude::*;
/* .goto_u8, .goto_u16, .goto_u32, */
/* .goto_u64, .goto_u128, .goto_usize, */
/* .goto_f32, .goto_f64 */

/* .try_goto_u8, .try_goto_u16, .try_goto_u32, */
/* .try_goto_u64, .try_goto_u128, .try_goto_usize, */
/* .try_goto_f32, .try_goto_f64 */

Infallible conversions use "goto"

Fallible conversions use "try_goto"