Struct rusty_lines::TTYLinesBuilder
source · pub struct TTYLinesBuilder<P: AsRef<Path>> { /* private fields */ }Expand description
Builder for lines read from the tty or stdin
Implementations§
source§impl<P: AsRef<Path>> TTYLinesBuilder<P>
impl<P: AsRef<Path>> TTYLinesBuilder<P>
sourcepub fn exit_on(self, exit_terms: &'static [&'static str]) -> Self
pub fn exit_on(self, exit_terms: &'static [&'static str]) -> Self
set the words that stop the iteration
sourcepub fn history(self, filename: P) -> Self
pub fn history(self, filename: P) -> Self
Set history on when using the tty. History is saved to a file with filenam
sourcepub fn build(self) -> Result<Input<P>, ReadlineError>
pub fn build(self) -> Result<Input<P>, ReadlineError>
Construct the line iterator
Auto Trait Implementations§
impl<P> Freeze for TTYLinesBuilder<P>where
P: Freeze,
impl<P> RefUnwindSafe for TTYLinesBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for TTYLinesBuilder<P>where
P: Send,
impl<P> Sync for TTYLinesBuilder<P>where
P: Sync,
impl<P> Unpin for TTYLinesBuilder<P>where
P: Unpin,
impl<P> UnwindSafe for TTYLinesBuilder<P>where
P: UnwindSafe,
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