aboutsummaryrefslogtreecommitdiffstats
path: root/src/row.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-03 13:22:23 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-03 13:22:23 -0500
commit942aff3577ec36879e6b8b0ca7a51863afd47319 (patch)
tree2d3649e0009f8e7431435b09b3e5972e75025b1e /src/row.rs
parent31181841edec356c049fae56f78aa5ba1c086619 (diff)
downloadvt100-rust-942aff3577ec36879e6b8b0ca7a51863afd47319.tar.gz
vt100-rust-942aff3577ec36879e6b8b0ca7a51863afd47319.zip
simplify
Diffstat (limited to 'src/row.rs')
-rw-r--r--src/row.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/row.rs b/src/row.rs
index 1644e73..8dc5b2e 100644
--- a/src/row.rs
+++ b/src/row.rs
@@ -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> {