Function rev_string

Source
pub fn rev_string(s: String) -> String
Expand description

Reverse a String value char-wise

ยงExamples

use crate::dbulfin_lib::rev_string;

let mut s = String::from("ABC");
assert_eq!(rev_string(s), String::from("CBA"))