fn bitor(self, rhs: Pattern) -> Self::Output {
        let cb1 = self.0;
        let cb2 = rhs.0;
        Pattern(Box::new(move |value| cb1(value) || cb2(value)))
    }
/// Combines two patterns into a pattern which matches a string if one of patterns matches that string.
///
/// # Example
/// ```
/// use sanitize_html::rules::pattern::Pattern;
/// use regex::Regex;
///
/// let pan = Pattern::regex(Regex::new("pan").unwrap());
/// let pot = Pattern::regex(Regex::new("pot").unwrap());
/// let pattern = pan | pot;
///
/// assert!(pattern.matches("pants"));
/// assert!(pattern.matches("pot"));
/// assert!(!pattern.matches("jar"));
/// ```
Combines two patterns into a pattern which matches a string if one of patterns matches that string.
Combines two patterns into a pattern which matches a string if one of patterns matches that string .
fn bitor(self, rhs: Pattern) -> Self::Output {
        let cb1 = self.0;
        let cb2 = rhs.0;
        Pattern(Box::new(move |value| cb1(value) || cb2(value)))
    }
fn bitor ( self , rhs : Pattern ) -> Self :: Output { let cb1 = self . 0 ; let cb2 = rhs . 0 ; Pattern ( Box :: new ( move | value | cb1 ( value ) || cb2 ( value ) ) ) }
Combines two patterns into a pattern which matches a string if one of patterns matches that string.
Combines two patterns into a pattern which matches a string if one of patterns matches that string .
self
rhs
Pattern
self
rhs
Pattern
example
```
use sanitize_html::rules::pattern::Pattern;
use regex::Regex.

let pan = Pattern::regex(Regex::new("pan").unwrap());
let pot = Pattern::regex(Regex::new("pot").unwrap());
let pattern = pan | pot.

assert!(pattern.matches("pants"));
assert!(pattern.matches("pot"));
assert!(!pattern.matches("jar"));
```
` ` ` use sanitize_html :: rules :: pattern :: Pattern ; use regex :: Regex . let pan = Pattern :: regex ( Regex :: new ( " pan " ) . unwrap () ) ; let pot = Pattern :: regex ( Regex :: new ( " pot " ) . unwrap () ) ; let pattern = pan | pot . assert! ( pattern . matches ( " pants " )) ; assert! ( pattern . matches ( " pot " )) ; assert! ( !pattern . matches ( " jar " )) ; ` ` `