#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

#50 in #num

Download history 30/week @ 2023-10-29 10/week @ 2023-11-05 16/week @ 2023-11-12 21/week @ 2023-11-19 26/week @ 2023-11-26 33/week @ 2023-12-03 4/week @ 2023-12-10 14/week @ 2023-12-17 28/week @ 2023-12-24 3/week @ 2023-12-31 6/week @ 2024-01-07 11/week @ 2024-01-14 12/week @ 2024-01-21 21/week @ 2024-01-28 7/week @ 2024-02-04 34/week @ 2024-02-11

76 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