Expose an iterator to interpreter::Struct

This commit is contained in:
Olivier Goffart 2021-03-17 15:25:37 +01:00
parent e16e2d8d4f
commit e20dd384f5
2 changed files with 55 additions and 2 deletions

View file

@ -88,3 +88,9 @@ impl<'a, T> core::ops::Deref for Slice<'a, T> {
self.as_slice()
}
}
impl<'a, T> Default for Slice<'a, T> {
fn default() -> Self {
Self::from_slice(&[])
}
}