fn rust_const_name(s: &str) -> String {
    // Property names/values seem pretty uniform, particularly the
    // "canonical" variants we use to produce variable names. So we
    // don't need to do much.
    //
    // N.B. Age names have a `.` in them, so get rid of that.
    let mut s = s.replace('.', "_").to_string();
    s.make_ascii_uppercase();
    s
}
/// Heuristically produce an appropriate constant Rust name.
Heuristically produce an appropriate constant Rust name.
Heuristically produce an appropriate constant Rust name .
fn rust_const_name(s: &str) -> String {
    // Property names/values seem pretty uniform, particularly the
    // "canonical" variants we use to produce variable names. So we
    // don't need to do much.
    //
    // N.B. Age names have a `.` in them, so get rid of that.
    let mut s = s.replace('.', "_").to_string();
    s.make_ascii_uppercase();
    s
}
fn rust_const_name ( s : & str ) -> String { // Property names/values seem pretty uniform, particularly the // "canonical" variants we use to produce variable names. So we // don't need to do much. // // N.B. Age names have a `.` in them, so get rid of that. let mut s = s . replace ( '.' , " " ) . to_string ( ) ; s . make_ascii_uppercase ( ) ; s }
Heuristically produce an appropriate constant Rust name.
Heuristically produce an appropriate constant Rust name .
s
&str
s
&str