(&self)
| 734 | } |
| 735 | |
| 736 | pub fn has_label(&self) -> bool { |
| 737 | if self.data().label().is_some() { |
| 738 | return true; |
| 739 | } |
| 740 | self.labelled_by().any(|node| { |
| 741 | if node.label_comes_from_value() { |
| 742 | node.has_value() |
| 743 | } else { |
| 744 | node.data().label().is_some() |
| 745 | } |
| 746 | }) |
| 747 | } |
| 748 | |
| 749 | fn write_label_direct<W: fmt::Write>(&self, mut writer: W) -> Result<bool, fmt::Error> { |
| 750 | if let Some(label) = &self.data().label() { |
no test coverage detected