better-conversions

Crates.iobetter-conversions
lib.rsbetter-conversions
version0.2.2
created_at2025-12-29 16:13:09.533503+00
updated_at2026-01-07 15:45:50.623063+00
descriptionSafe and explicit numeric conversions with range and precision checking
homepagehttps://github.com/Lozlof/better-conversions
repositoryhttps://github.com/Lozlof/better-conversions
max_upload_size
id2010835
size33,687
Justin (Lozlof)

documentation

https://docs.rs/better-conversions

README

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"

Commit count: 8

cargo fmt