btoi 0.1.3

Parse integers directly from byte slices
Documentation

btoi

Parse integers from byte slices.

Build Status crates.io

Introduction

Provides functions similar to from_str_radix, but is faster when parsing directly from byte slices instead of strings.

use btoi::btoi;

assert_eq!(Ok(42), btoi(b"42"));
assert_eq!(Ok(-1000), btoi(b"-1000"));

Documentation

Read the documentation

Changelog

  • 0.1.3
    • Update to num-traits 0.2 (semver compatible).
  • 0.1.2
    • Fix documentation warnings.
    • Update dependencies.
  • 0.1.1
    • Documentation fixes.
  • 0.1.0
    • Initial release.

License

btoi is dual licensed under the Apache 2.0 and MIT license, at your option.