Function humannum::parse_integer
[−]
[src]
pub fn parse_integer<I: PrimInt>(src: &str) -> Result<I, Error>
Parse integer value from string
Supported syntax:
- Supports for underscore in numbers
1_000
→ 1000 k
,M
,G
-- decimal suffixes25M
→ 25000000ki
,Mi
,Gi
-- binary suffixes8Ki
→ 81920x
,0o
,0b
-- prefixes numeral systems0xFF
→ 255,0o40
→ 32,0b11
→ 3