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

Method new

crates/opencode-tui/src/components/dialog.rs:9–14  ·  view source on GitHub ↗
(title: &str)

Source from the content-addressed store, hash-verified

7
8impl Dialog {
9 pub fn new(title: &str) -> Self {
10 Self {
11 _title: title.to_string(),
12 open: false,
13 }
14 }
15
16 pub fn open(&mut self) {
17 self.open = true;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected