Enum rss2email_lib::xml::error::ParserError
source · pub enum ParserError {
Parse(String),
Date(DateError),
}
Expand description
Represents possible issues that may arise when trying to parse web feeds. If this occurs then a web feed is considered invalid.
Variants§
Implementations§
source§impl ParserError
impl ParserError
sourcepub const fn generic_date_error(msg: String) -> Self
pub const fn generic_date_error(msg: String) -> Self
Less verbose way of instantiating a DateError::Generic
.
sourcepub const fn timezone_date_error(msg: String) -> Self
pub const fn timezone_date_error(msg: String) -> Self
Less verbose way of instantiating a DateError::TimeZoneError
.
sourcepub const fn empty_date_error() -> Self
pub const fn empty_date_error() -> Self
Less verbose way of instantiating a DateError::Empty
.
Trait Implementations§
source§impl Debug for ParserError
impl Debug for ParserError
source§impl Display for ParserError
impl Display for ParserError
source§impl From<DeError> for ParserError
impl From<DeError> for ParserError
source§impl Hash for ParserError
impl Hash for ParserError
source§impl PartialEq for ParserError
impl PartialEq for ParserError
source§fn eq(&self, other: &ParserError) -> bool
fn eq(&self, other: &ParserError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParserError
impl StructuralPartialEq for ParserError
Auto Trait Implementations§
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.