pub enum PhilipsSlideError {
StringConversionError(Utf8Error),
CoreError(Exception),
NullPtrError,
ImageError(ImageError),
DimensionsRangeToSizeError(DimensionsRangeToSizeError),
}Expand description
Enum defining all possible error when manipulating Philips struct
Variants§
StringConversionError(Utf8Error)
CxxString to &str conversion error
CoreError(Exception)
PhilipsSlide lib error
NullPtrError
NullPtr Error
ImageError(ImageError)
Error while creating Image from vector
DimensionsRangeToSizeError(DimensionsRangeToSizeError)
Trait Implementations§
Source§impl Debug for PhilipsSlideError
impl Debug for PhilipsSlideError
Source§impl Display for PhilipsSlideError
impl Display for PhilipsSlideError
Source§impl Error for PhilipsSlideError
impl Error for PhilipsSlideError
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<DimensionsRangeToSizeError> for PhilipsSlideError
impl From<DimensionsRangeToSizeError> for PhilipsSlideError
Source§fn from(source: DimensionsRangeToSizeError) -> Self
fn from(source: DimensionsRangeToSizeError) -> Self
Converts to this type from the input type.
Source§impl From<Exception> for PhilipsSlideError
impl From<Exception> for PhilipsSlideError
Source§impl From<ImageError> for PhilipsSlideError
impl From<ImageError> for PhilipsSlideError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PhilipsSlideError
impl !RefUnwindSafe for PhilipsSlideError
impl Send for PhilipsSlideError
impl Sync for PhilipsSlideError
impl Unpin for PhilipsSlideError
impl UnsafeUnpin for PhilipsSlideError
impl !UnwindSafe for PhilipsSlideError
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