str_to_bytes 0.2.3

parse a string representations of numbers or ascii text and return a Vec<u8>
Documentation
1
2
3
4
5
6
7
8
9
use str_to_bytes::str_to_bytes;

fn main() {
    let s: String = "12 0xff 0x25 0b1011".to_owned();

    let bytes: Vec<u8> = str_to_bytes(&s).unwrap();

    println!("{:?}", bytes);
}