Thanks to visit codestin.com Credit goes to docs.rs
pub fn translate(string: Expr, from: Expr, to: Expr) -> Expr
replaces the characters in from with the counterpart in to
from
to