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:
- hightlight ids only on debug builds
- ini file name disabled
Sourcepub fn set_clipboard(&mut self, clipboard: bool) -> &mut Self
pub fn set_clipboard(&mut self, clipboard: bool) -> &mut Self
Allows to disable the handling of the clipboard.
Default is enabled. Note that the clipboard from this module will only work if the feature clipboard is selected.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more