Enum winit::BadIcon [] [src]

pub enum BadIcon {
    ByteCountNotDivisibleBy4 {
        byte_count: usize,
    },
    DimensionsVsPixelCount {
        width: u32,
        height: u32,
        width_x_height: usize,
        pixel_count: usize,
    },
}

An error produced when using Icon::from_rgba with invalid arguments.

Variants

Produced when the length of the rgba argument isn't divisible by 4, thus rgba can't be safely interpreted as 32bpp RGBA pixels.

Fields of ByteCountNotDivisibleBy4

Produced when the number of pixels (rgba.len() / 4) isn't equal to width * height. At least one of your arguments is incorrect.

Fields of DimensionsVsPixelCount

Trait Implementations

impl Debug for BadIcon
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for BadIcon
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for BadIcon
[src]

impl PartialEq for BadIcon
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for BadIcon
[src]

impl Display for BadIcon
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for BadIcon
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for BadIcon

impl Sync for BadIcon