OptionCell: OnceCell but derivable from Option

This library provides an equivalent of OnceCell, but it guarantees layout compatibility with Option<T>, providing additional transmute helpers.

Known use-cases

Usage

txt cargo add option-cell

```rust use option_cell::OptionCell;

let mut options = vec![None, None]; let cells = OptionCell::frommutslice(&mut options); cells[0].set(1).unwrap(); ```

Development

Check with MIRI:

cargo +nightly miri test