[][src]Crate bstr_parse

bstr_parse

Adds the ability to parse numbers out of &[u8]s. Like so:

use bstr_parse::*;

let text: &[u8] = b"1234";
let num: u32 = text.parse().unwrap();
assert_eq!(num, 1234);

Structs

ParseIntError

An error which can be returned when parsing an integer.

Enums

IntErrorKind

Enum to store the various types of errors that can cause parsing an integer to fail.

Traits

BStrParse

An extension trait for parse.

FromBStr

Parse a value from a string

FromBStrRadix

An extension trait for from_bstr_radix.