The display width of the longest prefix (first_line or continuation).
(&self)
| 28 | impl TextInputStyle { |
| 29 | /// The display width of the longest prefix (first_line or continuation). |
| 30 | pub fn prefix_display_width(&self) -> usize { |
| 31 | let a = self.first_line_prefix.width(); |
| 32 | let b = self.continuation_prefix.width(); |
| 33 | a.max(b) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | impl Default for TextInputStyle { |
no outgoing calls
no test coverage detected