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

Method from_str_lossy

crates/opencode-tui/src/context/app_context.rs:75–81  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

73
74impl MessageDensity {
75 pub fn from_str_lossy(s: &str) -> Self {
76 if s.eq_ignore_ascii_case("cozy") {
77 Self::Cozy
78 } else {
79 Self::Compact
80 }
81 }
82
83 pub fn as_str(self) -> &'static str {
84 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected