pub struct Picture {
pub key: String,
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
A picture a panel shows, as rows of sRGB pixels with their alpha.
The host keeps it by key, so a picture shown again under the same
key is not sent to the screen again: a key names one picture.
Fields§
§key: String§width: u32§height: u32§rgba: Vec<u8>width × height pixels of four bytes each, red, green, blue and
alpha, row by row from the top.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Picture
impl<'de> Deserialize<'de> for Picture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Picture
Auto Trait Implementations§
impl Forget for Picture
impl Freeze for Picture
impl Move for Picture
impl RefUnwindSafe for Picture
impl Send for Picture
impl Sync for Picture
impl Unpin for Picture
impl UnsafeUnpin for Picture
impl UnwindSafe for Picture
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