ice-rs 0.3.0

ZeroC Ice for Rust
Documentation
1
2
3
4
5
6
7
8
9
pub fn escape(input: &str) -> String {
    if input == "type" {
        String::from("r#type")
    } else if input == "Type" {
        String::from("r#Type")
    } else {
        String::from(input)
    }
}