fn tuplize(items: &[String]) -> String {
    if items.is_empty() {
        String::new()
    } else {
        format!("({},)", items.join(","))
    }
}
/// Turns a non-empty sequence of items into a stringified tuple, else returns an empty string.
/// Tuplizing is necessary so that serde deserializes length-1 sequences into a newtype variant.
Turns a non-empty sequence of items into a stringified tuple, else returns an empty string.
Tuplizing is necessary so that serde deserializes length-1 sequences into a newtype variant.
Turns a non - empty sequence of items into a stringified tuple else returns an empty string . Tuplizing is necessary so that serde deserializes length - 1 sequences into a newtype variant .
fn tuplize(items: &[String]) -> String {
    if items.is_empty() {
        String::new()
    } else {
        format!("({},)", items.join(","))
    }
}
fn tuplize ( items : & [ String ] ) -> String { if items . is_empty ( ) { String :: new ( ) } else { format ! ( " " items join ( " " ) ) } }
Turns a non-empty sequence of items into a stringified tuple, else returns an empty string.
Turns a non - empty sequence of items into a stringified tuple else returns an empty string .
items
&[String]