libsyntax: add Default implementation to OptVec

This commit is contained in:
Erick Tryzelaar 2013-09-09 19:29:31 -07:00
parent 4a73c8eac7
commit f1374a7044

View File

@ -140,6 +140,10 @@ fn ne(&self, other: &OptVec<A>) -> bool {
}
}
impl<T> Default for OptVec<T> {
fn default() -> OptVec<T> { Empty }
}
pub struct OptVecIterator<'self, T> {
priv iter: Option<VecIterator<'self, T>>
}