pub struct ScriptedPrompter {
pub answers: VecDeque<String>,
pub bool_answers: VecDeque<bool>,
}Expand description
Pre-canned answers for unit tests. Pops answers in FIFO order.
Fields§
§answers: VecDeque<String>String answers (used for string + int fields).
bool_answers: VecDeque<bool>Bool answers (used for bool fields).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScriptedPrompter
impl RefUnwindSafe for ScriptedPrompter
impl Send for ScriptedPrompter
impl Sync for ScriptedPrompter
impl Unpin for ScriptedPrompter
impl UnsafeUnpin for ScriptedPrompter
impl UnwindSafe for ScriptedPrompter
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