Trait BrowserBuilderExt

Source
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§

Source

fn with_text_size(self, sz: i32) -> Self

Sets the text size. Lines start at 1

Source

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

Source

fn with_column_widths(self, arr: &[i32]) -> Self

Sets the current column width array

Source

fn with_has_scrollbar(self, mode: BrowserScrollbar) -> Self

Sets the type of scrollbar associated with the browser

Source

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.

Implementors§

Source§

impl<B> BrowserBuilderExt for B
where B: BrowserExt,