MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / as_str

Method as_str

crates/opencode-tui/src/context/app_context.rs:83–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 }
82
83 pub fn as_str(self) -> &'static str {
84 match self {
85 Self::Compact => "compact",
86 Self::Cozy => "cozy",
87 }
88 }
89}
90
91pub struct AppContext {

Callers 15

render_modeMethod · 0.45
render_headerMethod · 0.45
render_messagesMethod · 0.45
paint_block_linesFunction · 0.45
titlecaseFunction · 0.45
newMethod · 0.45
renderMethod · 0.45
recompute_suggestionsMethod · 0.45
spinner_mode_from_envFunction · 0.45
is_block_toolFunction · 0.45
extract_shell_commandFunction · 0.45
extract_pathFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected