ignite 0.1.6

ignite serves the role as a "batteries included" addon to stdlib providing useful stuff and higher level functions along with abstractions.
Documentation
1
2
3
4
5
6
7
8
9
#[inline]
pub fn string_to_bytes(string: String) -> Vec<u8> {
    string.chars().map(|c| c as u8).collect() // Some fancy pantsy stuff I don't understand.
}

#[inline]
pub fn str_to_bytes(string: &'static str) -> Vec<u8> {
    string.chars().map(|c| c as u8).collect() // Some fancy pantsy stuff I don't understand.
}