Helper: format a float with 2 decimal places and emit a text element.
(&mut self, value: f32, config_index: usize)
| 7218 | |
| 7219 | /// Helper: format a float with 2 decimal places and emit a text element. |
| 7220 | fn debug_float_text(&mut self, value: f32, config_index: usize) { |
| 7221 | let s = format!("{:.2}", value); |
| 7222 | self.open_text_element(&s, config_index); |
| 7223 | } |
| 7224 | |
| 7225 | /// Helper: open an element, configure, return nothing. Caller must close_element(). |
| 7226 | fn debug_open(&mut self, decl: &ElementDeclaration<CustomElementData>) { |
no test coverage detected