Enum adblock::lists::FilterParseError
source · pub enum FilterParseError {
Network(NetworkFilterError),
Cosmetic(CosmeticFilterError),
Unsupported,
Empty,
}
Expand description
Unsuccessful result of parsing a single filter rule.
Variants§
Trait Implementations§
source§impl Debug for FilterParseError
impl Debug for FilterParseError
source§impl Display for FilterParseError
impl Display for FilterParseError
source§impl Error for FilterParseError
impl Error for FilterParseError
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<CosmeticFilterError> for FilterParseError
impl From<CosmeticFilterError> for FilterParseError
source§fn from(v: CosmeticFilterError) -> Self
fn from(v: CosmeticFilterError) -> Self
Converts to this type from the input type.
source§impl From<NetworkFilterError> for FilterParseError
impl From<NetworkFilterError> for FilterParseError
source§fn from(v: NetworkFilterError) -> Self
fn from(v: NetworkFilterError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FilterParseError
impl RefUnwindSafe for FilterParseError
impl Send for FilterParseError
impl Sync for FilterParseError
impl Unpin for FilterParseError
impl UnwindSafe for FilterParseError
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