Enum sdl2::render::UpdateTextureYUVError
source · 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§
PitchOverflows
InvalidPlaneLength
XMustBeMultipleOfTwoForFormat(i32)
YMustBeMultipleOfTwoForFormat(i32)
WidthMustBeMultipleOfTwoForFormat(u32)
HeightMustBeMultipleOfTwoForFormat(u32)
RectNotInsideTexture(Rect)
SdlError(String)
Trait Implementations§
source§impl Debug for UpdateTextureYUVError
impl Debug for UpdateTextureYUVError
source§impl Display for UpdateTextureYUVError
impl Display for UpdateTextureYUVError
source§impl Error for UpdateTextureYUVError
impl Error for UpdateTextureYUVError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for UpdateTextureYUVError
impl RefUnwindSafe for UpdateTextureYUVError
impl Send for UpdateTextureYUVError
impl Sync for UpdateTextureYUVError
impl Unpin for UpdateTextureYUVError
impl UnwindSafe for UpdateTextureYUVError
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