Function std::u64::to_str_bytesDeprecated
[-]
[+]
[src]
pub fn to_str_bytes<U, F>(n: u64, radix: uint, f: F) -> U where F: FnOnce(&[u8]) -> U
Convert to a string as a byte slice in a given base.
Use in place of x.to_string() when you do not need to store the string permanently
Examples
fn main() { #![allow(deprecated)] std::uint::to_str_bytes(123, 10, |v| { assert!(v == "123".as_bytes()); }); }#![allow(deprecated)] std::uint::to_str_bytes(123, 10, |v| { assert!(v == "123".as_bytes()); });