Contact: aviboots(AT)netvision.net.il
39,848 questions
51,769 answers
573 users
fn main() { // Allocates 1 MB = 1,048,576 bytes let buf: Vec<u8> = Vec::with_capacity(1024 * 1024); println!("{:?}", buf.capacity()); } /* run: 1048576 */