pub enum PermalinkError {
InvalidUrl(Box<ParseError>),
InvalidPermalink(Box<Error<Rule>>),
UnknownCountry(String),
}Variants§
Trait Implementations§
source§impl Debug for PermalinkError
impl Debug for PermalinkError
source§impl Display for PermalinkError
impl Display for PermalinkError
source§impl Error for PermalinkError
impl Error for PermalinkError
1.30.0 · 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<ParseError> for PermalinkError
impl From<ParseError> for PermalinkError
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq<PermalinkError> for PermalinkError
impl PartialEq<PermalinkError> for PermalinkError
source§fn eq(&self, other: &PermalinkError) -> bool
fn eq(&self, other: &PermalinkError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.