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 Clone for UpdateTextureYUVError
impl Clone for UpdateTextureYUVError
source§fn clone(&self) -> UpdateTextureYUVError
fn clone(&self) -> UpdateTextureYUVError
Returns a copy 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 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)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations§
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