pub struct CompiledRegexCache { /* private fields */ }Implementations§
Source§impl CompiledRegexCache
impl CompiledRegexCache
pub fn insert(&mut self, literal: &RegexLiteral) -> Result<(), Error>
pub fn get(&self, flavor: RegexFlavor, pattern: &str) -> Option<&Regex>
pub fn is_match( &self, flavor: RegexFlavor, pattern: &str, haystack: &str, ) -> Option<bool>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for CompiledRegexCache
impl Clone for CompiledRegexCache
Source§fn clone(&self) -> CompiledRegexCache
fn clone(&self) -> CompiledRegexCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompiledRegexCache
impl Debug for CompiledRegexCache
Source§impl Default for CompiledRegexCache
impl Default for CompiledRegexCache
Source§fn default() -> CompiledRegexCache
fn default() -> CompiledRegexCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompiledRegexCache
impl RefUnwindSafe for CompiledRegexCache
impl Send for CompiledRegexCache
impl Sync for CompiledRegexCache
impl Unpin for CompiledRegexCache
impl UnsafeUnpin for CompiledRegexCache
impl UnwindSafe for CompiledRegexCache
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