diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-03 13:22:23 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-03 13:22:23 -0500 |
commit | 942aff3577ec36879e6b8b0ca7a51863afd47319 (patch) | |
tree | 2d3649e0009f8e7431435b09b3e5972e75025b1e /src/row.rs | |
parent | 31181841edec356c049fae56f78aa5ba1c086619 (diff) | |
download | vt100-rust-942aff3577ec36879e6b8b0ca7a51863afd47319.tar.gz vt100-rust-942aff3577ec36879e6b8b0ca7a51863afd47319.zip |
simplify
Diffstat (limited to 'src/row.rs')
-rw-r--r-- | src/row.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -14,6 +14,10 @@ impl Row { } } + pub fn clear(&mut self) { + *self = Self::new(self.cells.len().try_into().unwrap()); + } + pub fn cells_mut( &mut self, ) -> impl Iterator<Item = &mut crate::cell::Cell> { |