Loading RustViz Engine...
Demonstrate difference between Clone (heap allocation) and Copy (stack bitwise copy).
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
#[derive(Clone, Debug, PartialEq)]
pub struct HeapPayload {
pub data: Vec<u8>,
}
#[derive(Copy, Clone, Debug, PartialEq)]
pub struct StackPayload {
pub id: u64,
pub timestamp: u64,
}