Crates.io | get_len_base_10_as_usize |
lib.rs | get_len_base_10_as_usize |
version | 0.1.6 |
source | src |
created_at | 2022-01-16 23:43:17.149052 |
updated_at | 2022-02-04 18:14:34.899988 |
description | Traits for getting length base 10 as usize, both at run and compile time |
homepage | |
repository | https://github.com/JohnScience/get_len_base_10_as_usize |
max_upload_size | |
id | 515207 |
size | 29,212 |
This crate offers such traits as MaxLenBase10AsUsize
, GetLenBase10AsUsizeViaRepeatedMultiplicationBy10
, GetLenBase10AsUsize
, GetLenBase10AsUsizeViaDivigingWithPowsOf2
GetLenBase10AsUsizeViaStringConversion
, and TryEstimateLenBase10AsClosedUsizeIntvlViaFPLogarithm
.
use get_len_base_10_as_usize::MaxLenBase10AsUsize;
assert_eq!(u64::MAX_LEN_BASE_10_AS_USIZE, 20);