Skip to content

Safe and explicit numeric conversions with range and precision checking

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Lozlof/better-conversions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Safe and explicit numeric conversions with range and precision checking

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages