Enum glium::texture::TextureCreationError
source · pub enum TextureCreationError {
FormatNotSupported,
DimensionsNotSupported,
TypeNotSupported,
}
Expand description
Error that can happen when creating a texture.
Variants§
FormatNotSupported
The requested format is not supported by the backend.
DimensionsNotSupported
The requested texture dimensions are not supported.
TypeNotSupported
The texture format is not supported by the backend.
Trait Implementations§
source§impl Clone for TextureCreationError
impl Clone for TextureCreationError
source§fn clone(&self) -> TextureCreationError
fn clone(&self) -> TextureCreationError
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 TextureCreationError
impl Debug for TextureCreationError
source§impl Display for TextureCreationError
impl Display for TextureCreationError
source§impl Error for TextureCreationError
impl Error for TextureCreationError
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
source§impl PartialEq<TextureCreationError> for TextureCreationError
impl PartialEq<TextureCreationError> for TextureCreationError
source§fn eq(&self, other: &TextureCreationError) -> bool
fn eq(&self, other: &TextureCreationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextureCreationError
impl Eq for TextureCreationError
impl StructuralEq for TextureCreationError
impl StructuralPartialEq for TextureCreationError
Auto Trait Implementations§
impl RefUnwindSafe for TextureCreationError
impl Send for TextureCreationError
impl Sync for TextureCreationError
impl Unpin for TextureCreationError
impl UnwindSafe for TextureCreationError
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.