[−][src]Enum adblock::lists::FilterFormat
Denotes the format of a particular list resource, which affects how its rules should be parsed.
Variants
Rules should be parsed in ABP/uBO-style format.
Each line consists of an IP address (usually 127.0.0.1 or 0.0.0.0), some whitespace, and a
single hostname. This syntax is normally used directly for HOSTS-based adblockers. These
rules will be treated equivalently to "||hostname^" rules in Standard format; the IP
addresses will not be used.
Note that some sources provide a more raw format, where each line consists of just a hostname. This option will also accept that format.
For this option, ! is accepted as a comment character at the beginning of a line, and #
is accepted as a comment character anywhere in a line.
Trait Implementations
impl Clone for FilterFormat[src]
fn clone(&self) -> FilterFormat[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for FilterFormat[src]
impl Debug for FilterFormat[src]
impl<'de> Deserialize<'de> for FilterFormat[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for FilterFormat[src]
Auto Trait Implementations
impl RefUnwindSafe for FilterFormat
impl Send for FilterFormat
impl Sync for FilterFormat
impl Unpin for FilterFormat
impl UnwindSafe for FilterFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,