option: derive Clone/DeepClone for the iterator
This commit is contained in:
parent
25bac776d9
commit
b68eedf846
@ -388,6 +388,7 @@ impl<T> Zero for Option<T> {
|
||||
}
|
||||
|
||||
/// An iterator that yields either one or zero elements
|
||||
#[deriving(Clone, DeepClone)]
|
||||
pub struct OptionIterator<A> {
|
||||
priv opt: Option<A>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user