update_cell
A Cell<Option<T>> that you can update
Why would I need this?
Cell::update
only supports types that are Copy. So if you want to store and modify
something that is neither Copy nor has a Default (eg. a builder),
this crate might be useful.
Usage
Add this to your Cargo.toml:
[]
= "0.1"
And if you have a struct, you can put it inside and modify it:
use UpdateCell;
let mut cell = new;
cell.update;
License: MPL-2.0