Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knsd/from-ascii
Create instances from ascii string
https://github.com/knsd/from-ascii
Last synced: 15 days ago
JSON representation
Create instances from ascii string
- Host: GitHub
- URL: https://github.com/knsd/from-ascii
- Owner: knsd
- License: apache-2.0
- Created: 2016-01-02T05:03:57.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T08:55:16.000Z (almost 9 years ago)
- Last Synced: 2024-11-27T18:58:28.203Z (about 1 month ago)
- Language: Rust
- Homepage: http://knsd.github.io/from-ascii/
- Size: 551 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
from-ascii [![Build Status](https://travis-ci.org/knsd/from-ascii.svg?branch=master)](https://travis-ci.org/knsd/from-ascii)
==========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::from_ascii(b"123.456"));
println!("{:?}", i16::from_ascii_radix(b"FF", 16));
}```
### License
Licensed under either of
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you shall be dual licensed as above, without any
additional terms or conditions.