pub struct Screen<'a> {
pub want: &'a str,
pub manner: &'a str,
pub exchanges: &'a [(UserMove, String)],
pub cards: &'a [CardOnScreen],
pub offers: &'a [String],
pub turns_left: u32,
}Expand description
What the person has in front of them when they decide.
Fields§
§want: &'a strWhat they want.
manner: &'a strHow they talk.
exchanges: &'a [(UserMove, String)]The conversation so far: what they did, and the reply they read.
cards: &'a [CardOnScreen]The cards open on screen.
offers: &'a [String]The next steps the last reply offered, which a surface shows beside it.
turns_left: u32How many turns they will still take.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Screen<'a>
impl<'a> RefUnwindSafe for Screen<'a>
impl<'a> Send for Screen<'a>
impl<'a> Sync for Screen<'a>
impl<'a> Unpin for Screen<'a>
impl<'a> UnsafeUnpin for Screen<'a>
impl<'a> UnwindSafe for Screen<'a>
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