MCPcopy Create free account
hub / github.com/GCWing/BitFun / clear_cache

Method clear_cache

src/apps/cli/src/ui/markdown.rs:51–53  ·  view source on GitHub ↗

Clear the markdown render cache (e.g. on session switch)

(&mut self)

Source from the content-addressed store, hash-verified

49
50 /// Clear the markdown render cache (e.g. on session switch)
51 pub fn clear_cache(&mut self) {
52 self.cache.clear();
53 }
54
55 pub fn render(&self, markdown: &str, width: usize) -> Vec<Line<'static>> {
56 let mut lines = Vec::new();

Callers 1

clear_screenMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected