pub enum LoadTextureError {
InvalidTextureSize {
width: u32,
height: u32,
},
ImageError(ImageError),
}
Expand description
The error returned by Texture::load
.
Variants§
InvalidTextureSize
Tried to create a texture with dimensions which are greater than the maximum allowed texture size or zero.
ImageError(ImageError)
Error created by image::load
.
Trait Implementations§
Source§impl Debug for LoadTextureError
impl Debug for LoadTextureError
Source§impl Display for LoadTextureError
impl Display for LoadTextureError
Source§impl Error for LoadTextureError
impl Error for LoadTextureError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LoadTextureError> for Error
impl From<LoadTextureError> for Error
Source§fn from(e: LoadTextureError) -> Self
fn from(e: LoadTextureError) -> Self
Converts to this type from the input type.
Source§impl From<NewTextureError> for LoadTextureError
impl From<NewTextureError> for LoadTextureError
Source§fn from(e: NewTextureError) -> Self
fn from(e: NewTextureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LoadTextureError
impl !RefUnwindSafe for LoadTextureError
impl Send for LoadTextureError
impl Sync for LoadTextureError
impl Unpin for LoadTextureError
impl !UnwindSafe for LoadTextureError
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