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

Method set_value

src/components/input.rs:24–26  ·  view source on GitHub ↗
(&mut self, value: String)

Source from the content-addressed store, hash-verified

22 }
23
24 pub fn set_value(&mut self, value: String) {
25 self.value = value;
26 }
27
28 pub fn get_value(&self) -> &str {
29 if self.value.is_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected