pub struct ContextBuilder { /* private fields */ }
Expand description
Builder for a Context
.
Call build()
to build the context.
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn new() -> ContextBuilder
pub fn new() -> ContextBuilder
Creates a builder with default values.
Defaults are:
- no docking
- hightlight ids only on debug builds
- ini file name disabled
Sourcepub fn set_docking(&mut self, docking: bool) -> &mut Self
pub fn set_docking(&mut self, docking: bool) -> &mut Self
Sets the docking feature
Sourcepub fn set_debug_highlight_id_conflicts(
&mut self,
debug_highlight_id_conflicts: bool,
) -> &mut Self
pub fn set_debug_highlight_id_conflicts( &mut self, debug_highlight_id_conflicts: bool, ) -> &mut Self
Sets the debug highlight id
Sourcepub fn set_ini_file_name(&mut self, ini_file_name: Option<&str>) -> &mut Self
pub fn set_ini_file_name(&mut self, ini_file_name: Option<&str>) -> &mut Self
Sets the ini file name
Trait Implementations§
Source§impl Debug for ContextBuilder
impl Debug for ContextBuilder
Source§impl Default for ContextBuilder
impl Default for ContextBuilder
Source§fn default() -> ContextBuilder
fn default() -> ContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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