pub enum LayerError {
NotExpected(Kind),
OutOfBounds(Range<u16>),
}
Expand description
An error associated with selected image layer.
Variants§
NotExpected(Kind)
The source image kind doesn’t support array slices.
OutOfBounds(Range<u16>)
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)