pub struct IconPixmap {
pub width: i32,
pub height: i32,
pub pixels: Vec<u8>,
}
Fields§
§width: i32
§height: i32
§pixels: Vec<u8>
Implementations§
Source§impl IconPixmap
impl IconPixmap
Sourcepub fn from_array(array: &Array<'_>) -> Result<Vec<Self>>
pub fn from_array(array: &Array<'_>) -> Result<Vec<Self>>
Attempts to create a Vec<IconPixmap>
from a provided ZBus
Array
type.
This assumes the array is actually pixmap data.
§Errors
An error will return if any of the fields are missing are of the wrong type,
indicating usually that the array passed in was likely not a Pixmap
.
Trait Implementations§
Source§impl Clone for IconPixmap
impl Clone for IconPixmap
Source§fn clone(&self) -> IconPixmap
fn clone(&self) -> IconPixmap
Returns a duplicate of the value. Read more
1.0.0 · 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 IconPixmap
impl Debug for IconPixmap
Source§impl<'de> Deserialize<'de> for IconPixmap
impl<'de> Deserialize<'de> for IconPixmap
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
Auto Trait Implementations§
impl Freeze for IconPixmap
impl RefUnwindSafe for IconPixmap
impl Send for IconPixmap
impl Sync for IconPixmap
impl Unpin for IconPixmap
impl UnwindSafe for IconPixmap
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