pub enum InternalError<T: Debug + Display> {
Wrapped(T),
RegexError(InvalidRegexError),
}Variants§
Wrapped(T)
RegexError(InvalidRegexError)
An error indicating that a regular expression was invalid while generating the example. This signals a bug in the library’s metadata.
Implementations§
Source§impl<T: Debug + Display> InternalError<T>
impl<T: Debug + Display> InternalError<T>
Source§impl InternalError<Infallible>
impl InternalError<Infallible>
pub fn translate_internal<O: Debug + Display>(self) -> InternalError<O>
Trait Implementations§
Source§impl<T> Display for InternalError<T>
impl<T> Display for InternalError<T>
Source§impl<T: Debug + Display> Error for InternalError<T>
impl<T: Debug + Display> Error for InternalError<T>
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<ExtractNumberError> for InternalError<NotANumberError>
impl From<ExtractNumberError> for InternalError<NotANumberError>
Source§fn from(value: ExtractNumberError) -> Self
fn from(value: ExtractNumberError) -> Self
Converts to this type from the input type.
Source§impl From<GetExampleNumberError> for InternalError<GetExampleNumberError>
impl From<GetExampleNumberError> for InternalError<GetExampleNumberError>
Source§fn from(value: GetExampleNumberError) -> Self
fn from(value: GetExampleNumberError) -> Self
Converts to this type from the input type.
Source§impl<T: Debug + Display> From<InvalidRegexError> for InternalError<T>
impl<T: Debug + Display> From<InvalidRegexError> for InternalError<T>
Source§fn from(source: InvalidRegexError) -> Self
fn from(source: InvalidRegexError) -> Self
Converts to this type from the input type.
Source§impl From<NotANumberError> for InternalError<NotANumberError>
impl From<NotANumberError> for InternalError<NotANumberError>
Source§fn from(value: NotANumberError) -> Self
fn from(value: NotANumberError) -> Self
Converts to this type from the input type.
Source§impl From<NotANumberError> for InternalError<ParseError>
impl From<NotANumberError> for InternalError<ParseError>
Source§fn from(value: NotANumberError) -> Self
fn from(value: NotANumberError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for InternalError<GetExampleNumberError>
impl From<ParseError> for InternalError<GetExampleNumberError>
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for InternalError<ParseError>
impl From<ParseError> for InternalError<ParseError>
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
impl<T: Debug + Display> StructuralPartialEq for InternalError<T>
Auto Trait Implementations§
impl<T> Freeze for InternalError<T>where
T: Freeze,
impl<T> RefUnwindSafe for InternalError<T>where
T: RefUnwindSafe,
impl<T> Send for InternalError<T>where
T: Send,
impl<T> Sync for InternalError<T>where
T: Sync,
impl<T> Unpin for InternalError<T>where
T: Unpin,
impl<T> UnsafeUnpin for InternalError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for InternalError<T>where
T: 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