[][src]Struct screen_13::prelude_all::Icon

pub struct Icon<'a> {
    pub height: u32,
    pub pixels: &'a [u8],
    pub width: u32,
}

A small picture which represents the program, to be used by the operating system in different ways on each platform. Pixels are RGBA formatted.

Fields

height: u32

Icon height in pixels.

pixels: &'a [u8]

Array of RGBA-formatted pixel data.

The length is four times the number of pixels.

width: u32

Icon width in pixels.

Implementations

impl Icon<'static>[src]

pub const DEFAULT: Self[src]

A fantastic icon chosen based on the order in which it was generated. 🗿

Trait Implementations

impl<'a> Debug for Icon<'a>[src]

impl Default for Icon<'static>[src]

impl<'de: 'a, 'a> Deserialize<'de> for Icon<'a>[src]

impl<'a> Serialize for Icon<'a>[src]

impl<'a> TryFrom<&'a Icon<'_>> for WinitIcon[src]

type Error = BadIcon

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Icon<'a>[src]

impl<'a> Send for Icon<'a>[src]

impl<'a> Sync for Icon<'a>[src]

impl<'a> Unpin for Icon<'a>[src]

impl<'a> UnwindSafe for Icon<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.