pub enum StitchError {
MissingField(MissingFieldError),
NotEnoughImages(usize),
InvalidWindowSize,
ImageTooSmall {
width: u32,
height: u32,
window_size: u32,
crop: u32,
},
ScoreOverflow {
window_size: u32,
max_width: u32,
},
NoAdapter(String),
Gpu(String),
NoCandidates,
}Variants§
MissingField(MissingFieldError)
NotEnoughImages(usize)
InvalidWindowSize
ImageTooSmall
ScoreOverflow
NoAdapter(String)
Gpu(String)
NoCandidates
Trait Implementations§
Source§impl Debug for StitchError
impl Debug for StitchError
Source§impl Display for StitchError
impl Display for StitchError
Source§impl Error for StitchError
impl Error for StitchError
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<MissingFieldError> for StitchError
impl From<MissingFieldError> for StitchError
Source§fn from(err: MissingFieldError) -> Self
fn from(err: MissingFieldError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StitchError
impl RefUnwindSafe for StitchError
impl Send for StitchError
impl Sync for StitchError
impl Unpin for StitchError
impl UnsafeUnpin for StitchError
impl UnwindSafe for StitchError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more