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
sourceimpl Clone for UpdateTextureYUVError
impl Clone for UpdateTextureYUVError
sourcefn clone(&self) -> UpdateTextureYUVError
fn clone(&self) -> UpdateTextureYUVError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateTextureYUVError
impl Debug for UpdateTextureYUVError
sourceimpl Display for UpdateTextureYUVError
impl Display for UpdateTextureYUVError
sourceimpl Error for UpdateTextureYUVError
impl Error for UpdateTextureYUVError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more