pub enum ConversionError<S: AsRef<str>> {
InvalidToken(InvalidToken),
ParsingPrefix(ParsingError<S>),
}
Expand description
Enum of errors wrapping the actual error structs.
Variants§
InvalidToken(InvalidToken)
Invalid token encoutered when
ParsingPrefix(ParsingError<S>)
Could not parse the string into a Prefix
Trait Implementations§
Source§impl<S: Clone + AsRef<str>> Clone for ConversionError<S>
impl<S: Clone + AsRef<str>> Clone for ConversionError<S>
Source§fn clone(&self) -> ConversionError<S>
fn clone(&self) -> ConversionError<S>
Returns a duplicate 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<S: AsRef<str> + Debug> Error for ConversionError<S>
impl<S: AsRef<str> + Debug> Error for ConversionError<S>
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<ConversionError<String>> for NamedEntityError
impl From<ConversionError<String>> for NamedEntityError
Source§fn from(value: ConversionError<String>) -> Self
fn from(value: ConversionError<String>) -> Self
Converts to this type from the input type.
impl<S: Eq + AsRef<str>> Eq for ConversionError<S>
impl<S: AsRef<str>> StructuralPartialEq for ConversionError<S>
Auto Trait Implementations§
impl<S> Freeze for ConversionError<S>where
S: Freeze,
impl<S> RefUnwindSafe for ConversionError<S>where
S: RefUnwindSafe,
impl<S> Send for ConversionError<S>where
S: Send,
impl<S> Sync for ConversionError<S>where
S: Sync,
impl<S> Unpin for ConversionError<S>where
S: Unpin,
impl<S> UnwindSafe for ConversionError<S>where
S: UnwindSafe,
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