MCPcopy Index your code
hub / github.com/RustPython/RustPython / reverse_string

Function reverse_string

src/shell/helper.rs:14–17  ·  view source on GitHub ↗
(s: &mut String)

Source from the content-addressed store, hash-verified

12}
13
14fn reverse_string(s: &mut String) {
15 let rev = s.chars().rev().collect();
16 *s = rev;
17}
18
19fn split_idents_on_dot(line: &str) -> Option<(usize, Vec<String>)> {
20 let mut words = vec![String::new()];

Callers 1

split_idents_on_dotFunction · 0.85

Calls 3

collectMethod · 0.80
charsMethod · 0.80
revMethod · 0.45

Tested by

no test coverage detected