pub struct Pass { /* private fields */ }
Expand description
A group of rules with their regexes combined into one
Implementations§
source§impl Pass
impl Pass
sourcepub fn new(rules: Vec<(String, Box<dyn Tag>)>) -> Result<Self, CreationError>
pub fn new(rules: Vec<(String, Box<dyn Tag>)>) -> Result<Self, CreationError>
Creates new instance from vec of regex and tag pairs
sourcepub fn extend(&self, other: Pass) -> Result<Self, CreationError>
pub fn extend(&self, other: Pass) -> Result<Self, CreationError>
Merges it’s own regexes with other. Tags for existing regexes are replaced while new ones are placed at the end of resulting new Pass
Trait Implementations§
source§impl<'de> Deserialize<'de> for Pass
impl<'de> Deserialize<'de> for Pass
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Pass
impl Send for Pass
impl Sync for Pass
impl Unpin for Pass
impl !UnwindSafe for Pass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more