pub struct RegexCache { /* private fields */ }Expand description
The regular expressions compiled at evaluation (a pattern or flags that are not
literals), kept for the evaluations of any number of dynamic contexts, on any thread
(DynamicContext::with_regex_cache): the transformations of a stylesheet compile each
one once. At most RegexCache::MAX_ENTRIES are kept; the others are compiled each
time a dynamic context first needs them.
Implementations§
Source§impl RegexCache
impl RegexCache
Sourcepub const MAX_ENTRIES: usize = 1024
pub const MAX_ENTRIES: usize = 1024
The most regular expressions a cache keeps.
Trait Implementations§
Source§impl Debug for RegexCache
impl Debug for RegexCache
Auto Trait Implementations§
impl !Freeze for RegexCache
impl Forget for RegexCache
impl RefUnwindSafe for RegexCache
impl Send for RegexCache
impl Sync for RegexCache
impl Unpin for RegexCache
impl UnsafeUnpin 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