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
sourceimpl Clone for TextureValueError
impl Clone for TextureValueError
sourcefn clone(&self) -> TextureValueError
fn clone(&self) -> TextureValueError
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 TextureValueError
impl Debug for TextureValueError
sourceimpl Display for TextureValueError
impl Display for TextureValueError
sourceimpl Error for TextureValueError
impl Error for TextureValueError
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 TextureValueError
impl Send for TextureValueError
impl Sync for TextureValueError
impl Unpin for TextureValueError
impl UnwindSafe for TextureValueError
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