MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / get_value

Method get_value

src/components/input.rs:28–34  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

26 }
27
28 pub fn get_value(&self) -> &str {
29 if self.value.is_empty() {
30 &self.placeholder
31 } else {
32 &self.value
33 }
34 }
35}
36
37impl Component for Input {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected