Crates.io | clap-num |
lib.rs | clap-num |
version | 1.1.1 |
source | src |
created_at | 2020-07-30 03:37:15.189342 |
updated_at | 2024-01-22 00:42:34.238588 |
description | Number parsers for clap |
homepage | |
repository | https://github.com/newAM/clap-num/ |
max_upload_size | |
id | 271178 |
size | 33,913 |
clap number parsers.
This crate contains functions to validate and parse numerical values from strings provided by clap.
maybe_hex
Validates an unsigned integer value that can be base-10 or base-16.maybe_hex_range
Validates an unsigned integer value that can be base-10 or base-16 within a range.number_range
Validate a signed or unsigned integer value.si_number
Validate a signed or unsigned integer value with a metric prefix.si_number_range
Validate a signed or unsigned integer value with a metric prefix within a range.