MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / debug_float_text

Method debug_float_text

src/engine.rs:7220–7223  ·  view source on GitHub ↗

Helper: format a float with 2 decimal places and emit a text element.

(&mut self, value: f32, config_index: usize)

Source from the content-addressed store, hash-verified

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>) {

Calls 1

open_text_elementMethod · 0.80

Tested by

no test coverage detected