#[non_exhaustive]pub enum Show<'a> {
Card(&'a Card),
Errors(&'a str),
#[non_exhaustive] Game {
buffer: &'a GlyphBuffer,
background: Rgb,
look: Option<Look<'a>>,
},
}Expand description
What a frame shows.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Card(&'a Card)
The loading card, while the game’s data loads: drawn with what the backend has of its own (its font, its picture decoder), since the game’s look isn’t loaded yet.
Errors(&'a str)
Why the game couldn’t start (a broken asset, a wrong command line), in the backend’s own font. It stays until the player quits.
#[non_exhaustive]Game
The game’s console: its cells and pictures in full colour. A
one-bit backend draws it with its look’s
one_bit part.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
buffer: &'a GlyphBufferThe cells and the sprite items, as the screens drew them.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Show<'a>
impl<'a> !Send for Show<'a>
impl<'a> !Sync for Show<'a>
impl<'a> !UnwindSafe for Show<'a>
impl<'a> Freeze for Show<'a>
impl<'a> Unpin for Show<'a>
impl<'a> UnsafeUnpin for Show<'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