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

Method debug_int_text

src/engine.rs:7214–7217  ·  view source on GitHub ↗

Helper: format a number as a string and emit a text element.

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

Source from the content-addressed store, hash-verified

7212
7213 /// Helper: format a number as a string and emit a text element.
7214 fn debug_int_text(&mut self, value: f32, config_index: usize) {
7215 let s = format!("{}", value as i32);
7216 self.open_text_element(&s, config_index);
7217 }
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) {

Calls 1

open_text_elementMethod · 0.80

Tested by

no test coverage detected