summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorPierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com>2017-06-05 17:15:06 +0200
committerPierre-Henri Symoneaux <pierre-henri.symoneaux@nokia.com>2017-06-05 17:15:06 +0200
commita99d195b4a4ed40c969c2dff64353d5273f310a5 (patch)
treed356d8dc66ef748ca404e27251b75c84e866f38b /src/lib.rs
parent4e36ac179fc5341b35221018573e265a1f1a0a53 (diff)
Customize indent in format
Closes #51
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f825e23..470c5f5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -283,6 +283,11 @@ impl Table {
*self.format = format;
}
+ /// Get a mutable reference to the internal format
+ pub fn get_format(&mut self) -> &mut TableFormat {
+ &mut self.format
+ }
+
/// Compute and return the number of column
pub fn get_column_num(&self) -> usize {
self.as_ref().get_column_num()