#num #digitize

num-digitize

Converts integer of type N into Vec<i8> containing its digits

9 releases

Uses old Rust 2015

0.4.2 Jun 2, 2017
0.4.1 May 30, 2017
0.4.0 Aug 25, 2016
0.3.0 Jul 31, 2016
0.1.1 May 25, 2016

#2185 in Rust patterns

Download history 3/week @ 2023-05-21 8/week @ 2023-05-28 26/week @ 2023-06-04 7/week @ 2023-06-11 26/week @ 2023-06-18 18/week @ 2023-06-25 23/week @ 2023-07-02 11/week @ 2023-07-09 59/week @ 2023-07-16 16/week @ 2023-07-23 15/week @ 2023-07-30 9/week @ 2023-08-06 22/week @ 2023-08-13 7/week @ 2023-08-20 17/week @ 2023-08-27 25/week @ 2023-09-03

71 downloads per month
Used in luhn2

WTFPL license

10KB
236 lines

rust-num-digitize

Image of Travis CI build status Crates.io

Converts integer of type N (all standard types are supported) and returns a Vec<i8> of its digits (base 10).

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
num-digitize = "0.4"

and this to your crate root:

extern crate num_digitize;

Dependencies

~245KB