pub struct ScreenSnapshot {
pub width: u16,
pub height: u16,
pub pixels_rgba: Vec<u8>,
}Expand description
An owned RGBA8888 copy of the active screen.
Fields§
§width: u16§height: u16§pixels_rgba: Vec<u8>Trait Implementations§
Source§impl Clone for ScreenSnapshot
impl Clone for ScreenSnapshot
Source§fn clone(&self) -> ScreenSnapshot
fn clone(&self) -> ScreenSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScreenSnapshot
impl Debug for ScreenSnapshot
Source§impl PartialEq for ScreenSnapshot
impl PartialEq for ScreenSnapshot
Source§fn eq(&self, other: &ScreenSnapshot) -> bool
fn eq(&self, other: &ScreenSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ScreenSnapshot
impl StructuralPartialEq for ScreenSnapshot
Auto Trait Implementations§
impl Freeze for ScreenSnapshot
impl RefUnwindSafe for ScreenSnapshot
impl Send for ScreenSnapshot
impl Sync for ScreenSnapshot
impl Unpin for ScreenSnapshot
impl UnsafeUnpin for ScreenSnapshot
impl UnwindSafe for ScreenSnapshot
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