diff options
Diffstat (limited to 'src/format.rs')
-rw-r--r-- | src/format.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/format.rs b/src/format.rs index acffad6..a08aa55 100644 --- a/src/format.rs +++ b/src/format.rs @@ -69,6 +69,12 @@ impl LineSeparator { }
}
+impl Default for LineSeparator {
+ fn default() -> Self {
+ return LineSeparator::new('-', '+', '+', '+');
+ }
+}
+
/// Contains the table formatting rules
#[derive(Clone, Debug)]
pub struct TableFormat {
@@ -88,6 +94,12 @@ pub struct TableFormat { bottom_sep: Option<LineSeparator>
}
+impl Default for TableFormat {
+ fn default() -> Self {
+ return TableFormat::new(None, None, None);
+ }
+}
+
impl TableFormat {
/// Create a new TableFormat.
|