MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / non_empty

Function non_empty

src/sessions/lcm/extraction.rs:105–112  ·  view source on GitHub ↗
(value: &str)

Source from the content-addressed store, hash-verified

103}
104
105fn non_empty(value: &str) -> Option<&str> {
106 let trimmed = value.trim();
107 if trimmed.is_empty() {
108 None
109 } else {
110 Some(trimmed)
111 }
112}

Callers

nothing calls this directly

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected