diff options
Diffstat (limited to 'alacritty_terminal/src/grid/row.rs')
-rw-r--r-- | alacritty_terminal/src/grid/row.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/alacritty_terminal/src/grid/row.rs b/alacritty_terminal/src/grid/row.rs index f6bcb022..900d2a76 100644 --- a/alacritty_terminal/src/grid/row.rs +++ b/alacritty_terminal/src/grid/row.rs @@ -171,6 +171,16 @@ impl<T> Row<T> { } } +impl<'a, T> IntoIterator for &'a Row<T> { + type IntoIter = slice::Iter<'a, T>; + type Item = &'a T; + + #[inline] + fn into_iter(self) -> slice::Iter<'a, T> { + self.inner.iter() + } +} + impl<'a, T> IntoIterator for &'a mut Row<T> { type IntoIter = slice::IterMut<'a, T>; type Item = &'a mut T; |