Corelib
ByteArray
pub trait AppendFormattedToByteArray
fn append_formatted_to_byte_array(self: @T, ref byte_array: ByteArray, base: NonZero)
use core::to_byte_array::AppendFormattedToByteArray; let mut buffer = "Count: "; let num: u32 = 42; num.append_formatted_to_byte_array(ref buffer, 10); assert!(buffer == "Count: 42");
Was this page helpful?