Enum pep508_rs::Pep508ErrorSource
source · pub enum Pep508ErrorSource {
String(String),
UrlError(VerbatimUrlError),
UnsupportedRequirement(String),
}
Expand description
Either we have an error string from our parser or an upstream error from url
Variants§
String(String)
An error from our parser.
UrlError(VerbatimUrlError)
A URL parsing error.
UnsupportedRequirement(String)
The version requirement is not supported.
Trait Implementations§
source§impl Debug for Pep508ErrorSource
impl Debug for Pep508ErrorSource
source§impl Display for Pep508ErrorSource
impl Display for Pep508ErrorSource
source§impl Error for Pep508ErrorSource
impl Error for Pep508ErrorSource
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()
Auto Trait Implementations§
impl RefUnwindSafe for Pep508ErrorSource
impl Send for Pep508ErrorSource
impl Sync for Pep508ErrorSource
impl Unpin for Pep508ErrorSource
impl UnwindSafe for Pep508ErrorSource
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