[−][src]Enum https_everywhere_lib_core::Rule
A Rule is used to rewrite URLs from some regular expression to some string
Variants
Trivial
NonTrivial(String, String)
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 replaceto
- A string indicating the replacement value
Trait Implementations
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]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,