option: derive Clone/DeepClone for the iterator

This commit is contained in:
Daniel Micay 2013-08-19 15:36:43 -04:00
parent 25bac776d9
commit b68eedf846

View File

@ -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>
}