Skip to content

Commit

Permalink
feat: add Table.remove_header()
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Pashev <pashev.igor@gmail.com>
  • Loading branch information
ip1981 committed Jul 27, 2023
1 parent 7f5fbc9 commit 858e968
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ impl Table {
self.header.as_ref()
}

/// Remove the header.
pub fn remove_header(&mut self) -> &mut Self {
self.header = None;

self
}

/// Add a new row to the table.
///
/// ```
Expand Down

0 comments on commit 858e968

Please sign in to comment.