use dungeon_cell::{Alignment, DungeonCell, Size}; fn main() { let x: DungeonCell, Alignment<8>> = DungeonCell::default(); println!("Size {}", std::mem::size_of_val(&x)); println!("Align {}", std::mem::align_of_val(&x)); x.set(1234_i32); println!("{:?}", x.take::()); x.set(1.234_f32); println!("{:?}", x.take::()); x.set(1234_i32); println!("{:?}", x.take::()); x.set("hello"); println!("{:?}", x.take::<&'static str>()); x.set("world".to_owned()); println!("{:?}", x.take::()); x.set("a".to_owned()); x.set("b".to_owned()); println!("{:?}", x.take::()); }