is-digit 0.1.1

Detect decimal digit in char or first char of the str and String.
Documentation
is-digit-0.1.1 has been yanked.

is-digit

Detect decimal digit in char or first char of the str and String.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-digit = "~0.1.1"

Fetch it with cargo:
```bash
$ cargo build

Usage

extern crate is_digit;
use is_digit::IsDigit;

let _i = '1';
println!("{}", _i.is_digit()); // prints true
let _j = "2";
println!("{}", _j.is_digit()); // prints true
let _k = String::from("3");
println!("{}", _k.is_digit()); // prints true

About

License

Copyright © 2024, 255doesnotexist. Released under the MIT License.