pub enum LayerError {
NotExpected(Kind),
OutOfBounds,
}
Expand description
An error associated with selected image layer.
Variants§
NotExpected(Kind)
The source image kind doesn’t support array slices.
OutOfBounds
Selected layers are 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
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<LayerError> for ViewCreationError
impl From<LayerError> for ViewCreationError
Source§fn from(source: LayerError) -> Self
fn from(source: LayerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LayerError
impl PartialEq 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