from-ascii 0.0.1

Traits which creates instances from ascii string.
Documentation
  • Coverage
  • 90.91%
    10 out of 11 items documented3 out of 3 items with examples
  • Size
  • Source code size: 15.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Documentation
  • knsd/from-ascii
    1 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • knsd

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));
}