[][src]Function amq_protocol_codegen::snake_case

pub fn snake_case(name: &str) -> String

Convert input to snake case For the purpose of the AMQP codegen usage, we also handle a few special cases: "type" becomes "type_" "return" becomes "return_" A word needs to be composed of at least two letters, this makes UInt become uint and not u_int