pub struct Question<G: GameData> {
pub key: &'static str,
pub yes: fn(&mut Ctx<G>) -> &'static str,
}Expand description
A yes/no question asked before something that can’t be taken back with
one key (Ask::yes_no while it is open).
Fields§
§key: &'static strThe text key of the question; also what names it
(OptionsScreen::asking).
yes: fn(&mut Ctx<G>) -> &'static strDoes it, on a yes: the text key of the message to show.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<G> Freeze for Question<G>
impl<G> RefUnwindSafe for Question<G>
impl<G> Send for Question<G>
impl<G> Sync for Question<G>
impl<G> Unpin for Question<G>
impl<G> UnsafeUnpin for Question<G>
impl<G> UnwindSafe for Question<G>
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