pub enum LayerError {
NotExpected(Kind),
OutOfBounds(Layer, Layer),
}
Expand description
An error associated with selected texture layer.
Variants§
NotExpected(Kind)
The source texture kind doesn’t support array slices.
OutOfBounds(Layer, Layer)
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)>
Returns the lower-level source of this error, if any. Read more
Source§impl Hash for LayerError
impl Hash for LayerError
Source§impl PartialEq for LayerError
impl PartialEq for LayerError
impl Copy for LayerError
impl Eq for LayerError
impl StructuralPartialEq for LayerError
Auto Trait Implementations§
impl Freeze for LayerError
impl RefUnwindSafe for LayerError
impl Send for LayerError
impl Sync for LayerError
impl Unpin for LayerError
impl UnwindSafe for LayerError
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