Struct texlang_common::MockTerminalIn
source · pub struct MockTerminalIn(/* private fields */);
Expand description
A mock version of TerminalIn
.
This type wraps a vector of strings.
The first call to TerminalIn::read_line
returns the first string;
the second call returns the second string;
and so on.
When the vector is exhausted, read_line
returns an IO error of
kind std::io::ErrorKind::UnexpectedEof.
Implementations§
Trait Implementations§
source§impl Default for MockTerminalIn
impl Default for MockTerminalIn
source§fn default() -> MockTerminalIn
fn default() -> MockTerminalIn
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MockTerminalIn
impl Send for MockTerminalIn
impl Sync for MockTerminalIn
impl Unpin for MockTerminalIn
impl UnwindSafe for MockTerminalIn
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