pub struct Noul { /* private fields */ }Expand description
A yes/no question. The answer, a NoulAnswer, is the
probability that the answer is yes.
use typesafe::Noul;
let lights = Noul::new("If the user wants to change the lights, do they want them on?")
.yes("Lights on or brighter")
.no("Lights off or dimmer");Implementations§
Trait Implementations§
impl StructuralPartialEq for Noul
Auto Trait Implementations§
impl Freeze for Noul
impl RefUnwindSafe for Noul
impl Send for Noul
impl Sync for Noul
impl Unpin for Noul
impl UnsafeUnpin for Noul
impl UnwindSafe for Noul
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