fn mime_charset(mime_type: String) -> Option<String> {
    mime_type
        .find("charset=")
        .map(|index| mime_type[(index + 8)..].to_string())
}
/// Extracts charset from mime-type String
Extracts charset from mime-type String
Extracts charset from mime - type String
fn mime_charset(mime_type: String) -> Option<String> {
    mime_type
        .find("charset=")
        .map(|index| mime_type[(index + 8)..].to_string())
}
fn mime_charset ( mime_type : String ) -> Option < String > { mime_type . find ( " " ) . map ( | index | mime_type [ ( index + 8 ) .. ] . to_string ( ) ) }
Extracts charset from mime-type String
Extracts charset from mime - type String
mime_type
String