#[non_exhaustive]pub struct TextView {
pub narration: bool,
pub lines: Vec<String>,
pub shown: usize,
pub choices: Option<MenuView>,
pub skip: Option<SkipView>,
pub waiting: Option<WaitView>,
}Expand description
What the text box shows. Build it with TextView::new and assign the
rest (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.narration: boolWhether the text is narration (nobody says it).
lines: Vec<String>The page on screen, word-wrapped, in full. At a choice, the last page of the line being answered.
shown: usizeHow many of the page’s characters are revealed, from its start.
choices: Option<MenuView>The replies, while a choice is open.
skip: Option<SkipView>The “Skip scene?” question, while it is open: shown instead of the text.
waiting: Option<WaitView>The page, all shown, waiting for the key that goes on.
Implementations§
Trait Implementations§
impl Eq for TextView
impl StructuralPartialEq for TextView
Auto Trait Implementations§
impl Freeze for TextView
impl RefUnwindSafe for TextView
impl Send for TextView
impl Sync for TextView
impl Unpin for TextView
impl UnsafeUnpin for TextView
impl UnwindSafe for TextView
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