#[non_exhaustive]pub enum ClipError {
NoFrames,
FrameLastsZero {
index: usize,
},
TooLong,
NameTaken(String),
WrongPages {
needed: usize,
given: usize,
},
}Expand description
Why a clip could not be made or added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoFrames
The clip has no frame.
FrameLastsZero
A frame lasts zero.
TooLong
The frames together last longer than a Duration holds.
NameTaken(String)
Clips has a clip of this name already.
WrongPages
The textures given for an atlas’s pages are not one for each.
Trait Implementations§
impl Eq for ClipError
Source§impl Error for ClipError
impl Error for ClipError
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()
impl StructuralPartialEq for ClipError
Auto Trait Implementations§
impl Forget for ClipError
impl Freeze for ClipError
impl Move for ClipError
impl RefUnwindSafe for ClipError
impl Send for ClipError
impl Sync for ClipError
impl Unpin for ClipError
impl UnsafeUnpin for ClipError
impl UnwindSafe for ClipError
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