pub enum CURIEParsingError {
UnknownControlledVocabulary(ControlledVocabularyResolutionError),
AccessionParsingError(ParseIntError),
MissingNamespaceSeparator,
}Variants§
UnknownControlledVocabulary(ControlledVocabularyResolutionError)
Indicates that the controlled vocabulary wasn’t recognized, even if it is perfectly valid, we just don’t cover it.
AccessionParsingError(ParseIntError)
Indicates that the accession code wasn’t successfully parsed into an integer. Non-numeric accession codes are not supported by this library.
MissingNamespaceSeparator
Indicates that a “:” wasn’t detected, which indicates a malformed CURIE anywhere.
Trait Implementations§
Source§impl Debug for CURIEParsingError
impl Debug for CURIEParsingError
Source§impl Display for CURIEParsingError
impl Display for CURIEParsingError
Source§impl Error for CURIEParsingError
impl Error for CURIEParsingError
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<ControlledVocabularyResolutionError> for CURIEParsingError
impl From<ControlledVocabularyResolutionError> for CURIEParsingError
Source§fn from(source: ControlledVocabularyResolutionError) -> Self
fn from(source: ControlledVocabularyResolutionError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for CURIEParsingError
impl From<ParseIntError> for CURIEParsingError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CURIEParsingError
impl RefUnwindSafe for CURIEParsingError
impl Send for CURIEParsingError
impl Sync for CURIEParsingError
impl Unpin for CURIEParsingError
impl UnsafeUnpin for CURIEParsingError
impl UnwindSafe for CURIEParsingError
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