mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 09:36:06 +00:00
Add deriving_eq to Cell.
This commit is contained in:
parent
2ebb67487c
commit
86cf248262
@ -15,6 +15,7 @@ use prelude::*;
|
||||
///
|
||||
/// Similar to a mutable option type, but friendlier.
|
||||
|
||||
#[deriving_eq]
|
||||
pub struct Cell<T> {
|
||||
mut value: Option<T>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user