pub struct ScriptedInput { /* private fields */ }Expand description
A canned list of answers. Handy for tests and for scripted runs.
Implementations§
Source§impl ScriptedInput
impl ScriptedInput
pub fn new(lines: impl IntoIterator<Item = impl Into<String>>) -> Self
Trait Implementations§
Source§impl InputSource for ScriptedInput
impl InputSource for ScriptedInput
Auto Trait Implementations§
impl Freeze for ScriptedInput
impl RefUnwindSafe for ScriptedInput
impl Send for ScriptedInput
impl Sync for ScriptedInput
impl Unpin for ScriptedInput
impl UnsafeUnpin for ScriptedInput
impl UnwindSafe for ScriptedInput
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