Duals
Dual-Ownership Reference Cells
These are similar to Rc and Arc, but ensure that only two references exist.
Example
use Dual;
// create a new `Dual`
let = new;
// use both
println!;
// drop one reference
drop;
// we can still use the other
println!;
// drop the other reference; value is dropped
drop;