pub struct UiBuilder<W: Write> {
out: W,
err: Box<dyn Write>,
color_enabled: Option<bool>,
default_yes: Option<bool>,
config_overrides: ConfigOverrides,
settings: UiSettings,
}Fields§
§out: W§err: Box<dyn Write>§color_enabled: Option<bool>§default_yes: Option<bool>§config_overrides: ConfigOverrides§settings: UiSettingsImplementations§
Source§impl<W: Write> UiBuilder<W>
impl<W: Write> UiBuilder<W>
pub fn with_writer(out: W, settings: UiSettings) -> Self
pub fn with_error_writer(self, err: Box<dyn Write>) -> Self
pub fn with_config(self, key: &str, value: bool) -> Self
pub fn color_enabled(self, color: bool) -> Self
pub fn default_yes(self, default_yes: bool) -> Self
pub fn build(self) -> Ui<W>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for UiBuilder<W>where
W: Freeze,
impl<W> !RefUnwindSafe for UiBuilder<W>
impl<W> !Send for UiBuilder<W>
impl<W> !Sync for UiBuilder<W>
impl<W> Unpin for UiBuilder<W>where
W: Unpin,
impl<W> !UnwindSafe for UiBuilder<W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more