Enum openslide_rs::errors::OpenSlideError
source · pub enum OpenSlideError {
InternalError(String),
ImageError(String),
MissingFile(String),
UnsupportedFile(String),
CoreError(String),
}
Expand description
Enum defining all possible error when manipulating OpenSlide struct
Variants§
InternalError(String)
FFI string conversion error Integer conversion error
ImageError(String)
Image feature related error Example: Error while resizing, bad dimension ..
MissingFile(String)
UnsupportedFile(String)
CoreError(String)
OpenSlide lib error
Trait Implementations§
source§impl Clone for OpenSlideError
impl Clone for OpenSlideError
source§fn clone(&self) -> OpenSlideError
fn clone(&self) -> OpenSlideError
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 OpenSlideError
impl Debug for OpenSlideError
source§impl Display for OpenSlideError
impl Display for OpenSlideError
source§impl Error for OpenSlideError
impl Error for OpenSlideError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<NulError> for OpenSlideError
impl From<NulError> for OpenSlideError
source§impl From<TryFromIntError> for OpenSlideError
impl From<TryFromIntError> for OpenSlideError
source§fn from(err: TryFromIntError) -> Self
fn from(err: TryFromIntError) -> Self
Converts to this type from the input type.