Crates.io | is-digit |
lib.rs | is-digit |
version | 0.1.2 |
source | src |
created_at | 2024-03-19 15:21:22.869072 |
updated_at | 2024-03-19 15:33:04.62361 |
description | Detect decimal digit in char or first char of the str and String. |
homepage | |
repository | |
max_upload_size | |
id | 1179367 |
size | 5,114 |
Detect decimal digit in char or first char of the str and String.
Specify the dependency in Cargo.toml:
[dependencies]
is-digit = "~0.1.1"
Build is-digit with cargo:
$ cargo build
extern crate is_digit;
use is_digit::IsDigit;
let _i = '1';
println!("{}", _i.is_dec_digit()); // prints true
let _j = "2";
println!("{}", _j.is_dec_digit()); // prints true
let _k = String::from("3");
println!("{}", _k.is_dec_digit()); // prints true
Copyright © 2024, 255doesnotexist. Released under the MIT License.