INNER CODE UNIT · Rust

global_allocator_backs_a_plain_vec

binius-zk/binius64 · crates/compute/src/lib.rs:311

	fn global_allocator_backs_a_plain_vec() {
		let buffer = build(&GlobalAllocator);
		assert_eq!(&*buffer, &[1, 2, 3, 0, 0]);
	}

	#[test]
	fn buffer_pool_backs_a_pool_vec() {
		let pool = BufferPool::new();
		let buffer = build(&&pool);
		assert_eq!(&*buffer, &[1, 2, 3, 0, 0]);
	}
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…