pub struct RegexCache { /* private fields */ }Implementations§
Source§impl RegexCache
impl RegexCache
pub fn new() -> Self
pub fn get_or_insert( &mut self, pattern: &str, ) -> Result<&Regex, MinosCodexError>
Auto Trait Implementations§
impl Freeze for RegexCache
impl RefUnwindSafe for RegexCache
impl Send for RegexCache
impl Sync for RegexCache
impl Unpin for RegexCache
impl UnwindSafe for RegexCache
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