pub struct EncodedImage {
pub bytes: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
Encoded screenshot bytes and the final pixel size.
Fields§
§bytes: Vec<u8>File bytes.
width: u32Pixel width after an optional max-width resize.
height: u32Pixel height after an optional max-width resize.
Trait Implementations§
Source§impl Clone for EncodedImage
impl Clone for EncodedImage
Source§impl Debug for EncodedImage
impl Debug for EncodedImage
impl Eq for EncodedImage
Source§impl PartialEq for EncodedImage
impl PartialEq for EncodedImage
impl StructuralPartialEq for EncodedImage
Auto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnsafeUnpin for EncodedImage
impl UnwindSafe for EncodedImage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.