is-digit 0.1.2

Detect decimal digit in char or first char of the str and String.
Documentation
  • Coverage
  • 20%
    1 out of 5 items documented1 out of 4 items with examples
  • Size
  • Source code size: 4.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • 255doesnotexist

is-digit

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

Install

Specify the dependency in Cargo.toml:

[dependencies]
is-digit = "~0.1.1"

Build is-digit with cargo:

$ cargo build

Usage

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

About

License

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