#[non_exhaustive]pub struct Screen {
pub width: u16,
pub height: u16,
pub global_table_size: usize,
pub background: u8,
}Expand description
The logical screen descriptor: the canvas every frame is drawn onto.
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.width: u16Canvas width in pixels.
height: u16Canvas height in pixels.
global_table_size: usizeNumber of entries in the global colour table, or zero if absent.
background: u8Index into the global table used as the background, if any.
Implementations§
Trait Implementations§
impl Copy for Screen
impl Eq for Screen
impl StructuralPartialEq for Screen
Auto Trait Implementations§
impl Freeze for Screen
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnsafeUnpin for Screen
impl UnwindSafe for Screen
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