from-ascii

Crates.iofrom-ascii
lib.rsfrom-ascii
version0.0.1
sourcesrc
created_at2016-01-07 08:24:54.357503
updated_at2016-01-07 08:24:54.357503
descriptionTraits which creates instances from ascii string.
homepage
repositoryhttps://github.com/knsd/from-ascii/
max_upload_size
id3843
size15,289
maintainers (github:flamegraph-rs:maintainers)

documentation

http://knsd.github.io/from-ascii/

README

from-ascii Build Status

This crate provides two traits: FromAscii which creates instances from ascii string (&[u8]) and FromAsciiRadix wich creates only integral values with given radix.

The documentation is located at http://knsd.github.io/from-ascii/.

Usage example:


extern crate from_ascii;

use from_ascii::{FromAscii, FromAsciiRadix};

fn main() {
    println!("{:?}", f64::from_ascii(b"123.456"));
    println!("{:?}", i16::from_ascii_radix(b"FF", 16));
}

Commit count: 45

cargo fmt