pub trait BrowserBuilderExt {
// Required methods
fn with_text_size(self, sz: i32) -> Self;
fn with_column_char(self, c: char) -> Self;
fn with_column_widths(self, arr: &[i32]) -> Self;
fn with_has_scrollbar(self, mode: BrowserScrollbar) -> Self;
fn with_scrollbar_size(self, new_size: i32) -> Self;
}
Expand description
Adds builder pattern friendly versions of several setter functions
Required Methods§
Sourcefn with_text_size(self, sz: i32) -> Self
fn with_text_size(self, sz: i32) -> Self
Sets the text size. Lines start at 1
Sourcefn with_column_char(self, c: char) -> Self
fn with_column_char(self, c: char) -> Self
Sets the column separator to c. This will only have an effect if you also use with_column_widths()
.
c should be ascii
Sourcefn with_column_widths(self, arr: &[i32]) -> Self
fn with_column_widths(self, arr: &[i32]) -> Self
Sets the current column width array
Sourcefn with_has_scrollbar(self, mode: BrowserScrollbar) -> Self
fn with_has_scrollbar(self, mode: BrowserScrollbar) -> Self
Sets the type of scrollbar associated with the browser
Sourcefn with_scrollbar_size(self, new_size: i32) -> Self
fn with_scrollbar_size(self, new_size: i32) -> Self
Sets the scrollbar size
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.