schroedinger_box 0.0.1

A Rust container type modeled after Erwin Schrödinger’s famous thought experiment.

A box that contains many values, but collapses into one when opened (read from)
for the first time.


let cat_is_alive = SchroedingerBox::new(vec![true, false]);
// Here the cat is both dead and alive, but when we observe it...
let state = *cat_is_alive;
// collapses into one of the possible states with equal probability.
assert_eq!(state, *cat_is_alive);