mark Cell as non-Const with #[mutable]
This commit is contained in:
parent
58c0df2af6
commit
66842c8576
@ -19,6 +19,7 @@ A dynamic, mutable location.
|
|||||||
Similar to a mutable option type, but friendlier.
|
Similar to a mutable option type, but friendlier.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#[mutable]
|
||||||
pub struct Cell<T> {
|
pub struct Cell<T> {
|
||||||
priv value: Option<T>
|
priv value: Option<T>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user