pub struct ParserCache { /* private fields */ }Expand description
High-performance parser cache using moka
Implementations§
Source§impl ParserCache
impl ParserCache
Sourcepub fn parse_with_cache(
&self,
content: &str,
) -> Result<Document, Box<dyn Error>>
pub fn parse_with_cache( &self, content: &str, ) -> Result<Document, Box<dyn Error>>
Parse markdown content with AST caching
Sourcepub fn render_with_cache(
&self,
content: &str,
options: RenderOptions,
) -> Result<String, Box<dyn Error>>
pub fn render_with_cache( &self, content: &str, options: RenderOptions, ) -> Result<String, Box<dyn Error>>
Render markdown to HTML with full caching (AST + HTML)
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
Get cache statistics
Trait Implementations§
Source§impl Clone for ParserCache
impl Clone for ParserCache
Source§fn clone(&self) -> ParserCache
fn clone(&self) -> ParserCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParserCache
impl !RefUnwindSafe for ParserCache
impl Send for ParserCache
impl Sync for ParserCache
impl Unpin for ParserCache
impl UnsafeUnpin for ParserCache
impl !UnwindSafe for ParserCache
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