Enum sdl2::render::UpdateTextureYUVError [] [src]

pub enum UpdateTextureYUVError {
    PitchOverflows {
        plane: &'static str,
        value: usize,
    },
    InvalidPlaneLength {
        plane: &'static str,
        length: usize,
        pitch: usize,
        height: usize,
    },
    XMustBeMultipleOfTwoForFormat(i32),
    YMustBeMultipleOfTwoForFormat(i32),
    WidthMustBeMultipleOfTwoForFormat(u32),
    HeightMustBeMultipleOfTwoForFormat(u32),
    RectNotInsideTexture(Rect),
    SdlError(String),
}

Variants

Fields of PitchOverflows

Fields of InvalidPlaneLength

Trait Implementations

impl Debug for UpdateTextureYUVError
[src]

[src]

Formats the value using the given formatter.

impl Display for UpdateTextureYUVError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for UpdateTextureYUVError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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