Enum sdl2::render::TextureValueError
source · pub enum TextureValueError {
WidthOverflows(u32),
HeightOverflows(u32),
WidthMustBeMultipleOfTwoForFormat(u32, PixelFormatEnum),
SdlError(String),
}
Variants§
WidthOverflows(u32)
HeightOverflows(u32)
WidthMustBeMultipleOfTwoForFormat(u32, PixelFormatEnum)
SdlError(String)
Trait Implementations§
source§impl Clone for TextureValueError
impl Clone for TextureValueError
source§fn clone(&self) -> TextureValueError
fn clone(&self) -> TextureValueError
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 TextureValueError
impl Debug for TextureValueError
source§impl Display for TextureValueError
impl Display for TextureValueError
source§impl Error for TextureValueError
impl Error for TextureValueError
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 TextureValueError
impl Send for TextureValueError
impl Sync for TextureValueError
impl Unpin for TextureValueError
impl UnwindSafe for TextureValueError
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