Function std::i8::to_str_bytesDeprecated[src]

pub fn to_str_bytes<U>(n: i8, radix: uint, f: |v: &[u8]| -> U) -> U

Convert to a string as a byte slice in a given base.

Use in place of x.to_str() when you do not need to store the string permanently

Examples

fn main() { #![allow(deprecated)] std::int::to_str_bytes(123, 10, |v| { assert!(v == "123".as_bytes()); }); }
#![allow(deprecated)]

std::int::to_str_bytes(123, 10, |v| {
    assert!(v == "123".as_bytes());
});