MCPcopy Create free account
hub / github.com/AccessKit/accesskit / value

Method value

platforms/ios/src/node.rs:72–83  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

70 }
71
72 fn value(&self) -> Option<Value> {
73 if let Some(toggled) = self.0.toggled() {
74 return Some(Value::Bool(toggled != Toggled::False));
75 }
76 if let Some(value) = self.0.value() {
77 return Some(Value::String(value));
78 }
79 if let Some(value) = self.0.numeric_value() {
80 return Some(Value::Number(value));
81 }
82 None
83 }
84
85 fn frame_source(&self) -> FrameSource {
86 if let Some(rect) = self.0.bounding_box() {

Callers 3

node_addedMethod · 0.45
node_updatedMethod · 0.45
wrapper_valueFunction · 0.45

Calls 2

toggledMethod · 0.80
numeric_valueMethod · 0.45

Tested by

no test coverage detected