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:
```rust
extern crate from_ascii;
use from_ascii::{FromAscii, FromAsciiRadix};
fn main() { println!("{:?}", f64::fromascii(b"123.456")); println!("{:?}", i16::fromascii_radix(b"FF", 16)); }
```