fn split_key_value(kv: &str) -> (&str, &str) {
    if let Some(offset) = kv.find('=') {
        let (key, mut value) = kv.split_at(offset);
        // Drop the leading `=`.
        value = &value[1..];

        (key, value)
    } else {
        let key = kv;

        (key, "")
    }
}
/// Split a key-value pair into the key and the value (which are separated by `=`).
///
/// If `kv` contains no separator, the whole input is treated as key, and the value is empty. If
/// `kv` contains multiple equals signs, the first one is treated as separator. If `kv` is empty,
/// both the key and the value are empty.
Split a key-value pair into the key and the value (which are separated by `=`).
If `kv` contains no separator, the whole input is treated as key, and the value is empty. If
`kv` contains multiple equals signs, the first one is treated as separator. If `kv` is empty,
both the key and the value are empty.
Split a key - value pair into the key and the value ( which are separated by ` = ` ) . If ` kv ` contains no separator the whole input is treated as key and the value is empty . If ` kv ` contains multiple equals signs the first one is treated as separator . If ` kv ` is empty both the key and the value are empty .
fn split_key_value(kv: &str) -> (&str, &str) {
    if let Some(offset) = kv.find('=') {
        let (key, mut value) = kv.split_at(offset);
        // Drop the leading `=`.
        value = &value[1..];
        (key, value)
    } else {
        let key = kv;
        (key, "")
    }
}
fn split_key_value ( kv : & str ) -> ( & str , & str ) { if let Some ( offset ) = kv . find ( '=' ) { let ( key , mut value ) = kv . split_at ( offset ) ; // Drop the leading `=`. value = & value [ 1 .. ] ; ( key , value ) } else { let key = kv ; ( key , " " ) } }
Split a key-value pair into the key and the value (which are separated by `=`).
Split a key - value pair into the key and the value ( which are separated by ` = ` ) .
kv
&str
kv
&str