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

Method fmt

crates/opencode-tui/src/router.rs:18–25  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

16
17impl std::fmt::Display for Route {
18 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
19 match self {
20 Route::Home => write!(f, "Home"),
21 Route::Session { session_id } => write!(f, "Session: {}", session_id),
22 Route::Settings => write!(f, "Settings"),
23 Route::Help => write!(f, "Help"),
24 }
25 }
26}
27
28#[derive(Clone, Debug, Default)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected