pub enum HpoError {
NotImplemented,
DoesNotExist,
ParseIntError,
ParseBinaryError,
CannotOpenFile(String),
TryFromIntError(TryFromIntError),
}
Expand description
Main Error type for this crate
Variants§
NotImplemented
Indicates that a method or feature is not yet implemented
DoesNotExist
The term does not exist in the Ontology
ParseIntError
Parsing of an integer failed
ParseBinaryError
An error occured during parsing the binary HPO data
CannotOpenFile(String)
Opening the file was not able - check if the file is present
TryFromIntError(TryFromIntError)
Failed to convert an integer to a float
Trait Implementations§
source§impl Error for HpoError
impl Error for HpoError
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<ParseIntError> for HpoError
impl From<ParseIntError> for HpoError
source§fn from(_: ParseIntError) -> Self
fn from(_: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<TryFromIntError> for HpoError
impl From<TryFromIntError> for HpoError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HpoError
impl RefUnwindSafe for HpoError
impl Send for HpoError
impl Sync for HpoError
impl Unpin for HpoError
impl UnwindSafe for HpoError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.