tree_table/api/opts_get.rs
1use alloc::string::String;
2
3use crate::Options;
4use crate::Table;
5
6impl Table {
7 /// Get the tables default settings as Options.
8 /// - This does not return the current settings.
9 pub fn get_opts_default(&self) -> Result<Options, String> {
10 let default_opts = Options::default();
11 Ok(default_opts)
12 }
13
14 pub fn get_opts(&self) -> &Options {
15 &self.opts
16 }
17}