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

Method is_empty_text_input

consumer/src/node.rs:804–815  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

802 }
803
804 fn is_empty_text_input(&self) -> bool {
805 let mut text_runs = self.text_runs();
806 if let Some(first_text_run) = text_runs.next() {
807 first_text_run
808 .data()
809 .value()
810 .is_none_or(|value| value.is_empty())
811 && text_runs.next().is_none()
812 } else {
813 true
814 }
815 }
816
817 pub fn placeholder(&self) -> Option<&str> {
818 self.data()

Callers 1

placeholderMethod · 0.80

Calls 5

text_runsMethod · 0.80
nextMethod · 0.80
dataMethod · 0.80
valueMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected