Struct conciliator::input::Confirm
source · pub struct Confirm<Q, M> { /* private fields */ }
Expand description
Boolean Input
, e.g. Are you sure? [y/N]
Implementations§
source§impl<Q, M> Confirm<Q, M>
impl<Q, M> Confirm<Q, M>
sourcepub fn default_no(question: Q) -> Self
pub fn default_no(question: Q) -> Self
Return false
for empty input [y/N]
sourcepub fn default_yes(question: Q) -> Self
pub fn default_yes(question: Q) -> Self
Return true
for empty input [Y/n]
Trait Implementations§
Auto Trait Implementations§
impl<Q, M> RefUnwindSafe for Confirm<Q, M>where
M: RefUnwindSafe,
Q: RefUnwindSafe,
impl<Q, M> Send for Confirm<Q, M>
impl<Q, M> Sync for Confirm<Q, M>
impl<Q, M> Unpin for Confirm<Q, M>
impl<Q, M> UnwindSafe for Confirm<Q, M>where
M: UnwindSafe,
Q: 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