Enum publicsuffix::Error [−][src]
#[non_exhaustive]
pub enum Error {
EmptyLabel(String),
ExceptionAtFirstLabel(String),
InvalidList,
InvalidRule(String),
ListNotUtf8Encoded,
}
Expand description
Errors returned by this crate
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyLabel(String)
Tuple Fields of EmptyLabel
0: String
ExceptionAtFirstLabel(String)
Tuple Fields of ExceptionAtFirstLabel
0: String
InvalidRule(String)
Tuple Fields of InvalidRule
0: String
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more