[][src]Enum https_everywhere_lib_wasm::Rule

pub enum Rule {
    Trivial,
    NonTrivial(StringString),
}

A Rule is used to rewrite URLs from some regular expression to some string

Variants

TrivialNonTrivial(StringString)

Methods

impl Rule[src]

pub fn new(from_regex: String, to: String) -> Rule[src]

Returns a rule with the from regex and replacement string specified

Arguments

  • from_regex - A string that will be compiled to regex indicating the URL to replace
  • to - A string indicating the replacement value

Trait Implementations

impl Debug for Rule[src]

impl ToJavaScript for Rule[src]

fn to_javascript(&self) -> JsValue[src]

Convert a rule to a JS value

Auto Trait Implementations

impl Unpin for Rule

impl Sync for Rule

impl Send for Rule

impl UnwindSafe for Rule

impl RefUnwindSafe for Rule

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]