MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-tui/src/components/tool_views.rs:20–25  ·  view source on GitHub ↗
(pattern: String)

Source from the content-addressed store, hash-verified

18
19impl GlobToolView {
20 pub fn new(pattern: String) -> Self {
21 Self {
22 pattern,
23 matches: None,
24 }
25 }
26
27 pub fn render(&self, frame: &mut Frame, area: Rect, theme: &Theme) {
28 let count = self.matches.as_ref().map(|m| m.len()).unwrap_or(0);

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected