#num #convert #digits #integer #containing #digitize #vec-i8

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

#29 in #num


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

~240KB