[−][src]Enum luminance::texture::TextureError
Errors that might happen when working with textures.
Variants
TextureStorageCreationFailed(String)
A texture’s storage failed to be created.
The carried String
gives the reason of the failure.
Not enough pixel data provided for the given area asked.
The first usize
is the number of expected bytes to be uploaded and the second usize
is
the number you provided. You must provide at least as many pixels as expected by the area in
the texture you’re uploading to.
UnsupportedPixelFormat(PixelFormat)
Unsupported pixel format.
Sometimes, some hardware might not support a given pixel format (or the format exists on the interface side but doesn’t in the implementation). That error represents such a case.
Trait Implementations
impl Eq for TextureError
[src]
impl Clone for TextureError
[src]
fn clone(&self) -> TextureError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<TextureError> for TextureError
[src]
fn eq(&self, other: &TextureError) -> bool
[src]
fn ne(&self, other: &TextureError) -> bool
[src]
impl Debug for TextureError
[src]
impl Display for TextureError
[src]
Auto Trait Implementations
impl Sync for TextureError
impl Send for TextureError
impl Unpin for TextureError
impl UnwindSafe for TextureError
impl RefUnwindSafe for TextureError
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,