MCPcopy Create free account
hub / github.com/RIP-Comm/clementine / as_str

Method as_str

ui/src/cpu_handler.rs:76–78  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

74
75 fn insert_text(&mut self, text: &str, char_index: egui::text::CharIndex) -> usize {
76 let mut text_string = text.to_string();
77 text_string.retain(|c| c.is_ascii_hexdigit());
78 text_string.make_ascii_uppercase();
79
80 let byte_idx = byte_index_from_char_index(self.as_str(), char_index);
81

Callers 3

uiMethod · 0.80
insert_textMethod · 0.80
delete_char_rangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected