Enum gfx::texture::LayerError
source · pub enum LayerError {
NotExpected(Kind),
OutOfBounds(u16, u16),
}
Expand description
An error associated with selected texture layer.
Variants§
NotExpected(Kind)
The source texture kind doesn’t support array slices.
OutOfBounds(u16, u16)
Selected layer is outside of the provided range.
Trait Implementations§
source§impl Clone for LayerError
impl Clone for LayerError
source§fn clone(&self) -> LayerError
fn clone(&self) -> LayerError
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 LayerError
impl Debug for LayerError
source§impl Display for LayerError
impl Display for LayerError
source§impl Error for LayerError
impl Error for LayerError
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 Hash for LayerError
impl Hash for LayerError
source§impl PartialEq<LayerError> for LayerError
impl PartialEq<LayerError> for LayerError
source§fn eq(&self, other: &LayerError) -> bool
fn eq(&self, other: &LayerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.