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 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)>
Returns the lower-level source of this error, if any. Read more
Auto Trait Implementations§
impl Freeze for TextureValueError
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