pub struct ReplBuilder<'eval, W: Write> { /* private fields */ }Implementations§
Source§impl<'eval, W: Write> ReplBuilder<'eval, W>
impl<'eval, W: Write> ReplBuilder<'eval, W>
pub fn sink<S: Write>(self, sink: S) -> ReplBuilder<'eval, S>
pub fn default_prompt(self, prompt: Vec<StyledContent<char>>) -> Self
pub fn continue_prompt(self, prompt: Vec<StyledContent<char>>) -> Self
pub fn reverse_search_prompt(self, prompt: Vec<StyledContent<char>>) -> Self
pub fn history_filepath(self, filepath: impl AsRef<Utf8Path>) -> Self
pub fn evaluator<E>(self, evaluator: E) -> Self
pub fn hello(self, hello_msg: impl Into<String>) -> Self
pub fn goodbye(self, goodbye_msg: impl Into<String>) -> Self
pub fn build(self) -> ReplBlockResult<Repl<'eval, W>>
Trait Implementations§
Auto Trait Implementations§
impl<'eval, W> Freeze for ReplBuilder<'eval, W>where
W: Freeze,
impl<'eval, W> !RefUnwindSafe for ReplBuilder<'eval, W>
impl<'eval, W> !Send for ReplBuilder<'eval, W>
impl<'eval, W> !Sync for ReplBuilder<'eval, W>
impl<'eval, W> Unpin for ReplBuilder<'eval, W>where
W: Unpin,
impl<'eval, W> !UnwindSafe for ReplBuilder<'eval, 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
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