Skip to content

JohnScience/get_len_base_10_as_usize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traits for getting length base 10 as usize

This crate offers such traits as MaxLenBase10AsUsize, GetLenBase10AsUsizeViaRepeatedMultiplicationBy10, GetLenBase10AsUsize, GetLenBase10AsUsizeViaDivigingWithPowsOf2 GetLenBase10AsUsizeViaStringConversion, and TryEstimateLenBase10AsClosedUsizeIntvlViaFPLogarithm.

Example

use get_len_base_10_as_usize::MaxLenBase10AsUsize;

assert_eq!(u64::MAX_LEN_BASE_10_AS_USIZE, 20);

Sources of insipration

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Traits for getting length base 10 as usize

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages