Expand description
Parsing functions and collections for handling with multiple filter rules.
Structs§
- Includes information about any “special comments” as described by https://help.eyeo.com/adblockplus/how-to-write-filters#special-comments
- Manages a set of rules to be added to an
crate::Engine
. - Options for tweaking how a filter or list of filters is interpreted when parsing. It’s recommended to use struct update syntax with a
default()
“rest” value; adding new fields to this struct will not be considered a breaking change.
Enums§
- Corresponds to the
expires
field ofFilterListMetadata
. - Denotes the format of a particular list resource, which affects how its rules should be parsed.
- Unsuccessful result of parsing a single filter rule.
- Describes the type of a single filter.
- Successful result of parsing a single filter rule
- Specifies rule types to keep during parsing.
Functions§
- Parse a single filter rule
- Parse an entire list of filters, ignoring any errors
- Parse an entire list of filters, ignoring any errors
- Collects metadata for the list by reading just until the first non-comment line.