pub fn into_name(self) -> Option<String> {
        match self {
            Filename::Name(None) => None,
            Filename::Name(Some(name)) => Some(name),
            Filename::Extended(_, name) => Some(percent_decode_str(&name).decode_utf8_lossy().into_owned()),
        }
    }
///Consumes self and returns file name, if present.
///
///Note: expects to work with utf-8 only.
Consumes self and returns file name, if present.
Note: expects to work with utf-8 only.
Consumes self and returns file name if present . Note : expects to work with utf - 8 only .
pub fn into_name(self) -> Option<String> {
        match self {
            Filename::Name(None) => None,
            Filename::Name(Some(name)) => Some(name),
            Filename::Extended(_, name) => Some(percent_decode_str(&name).decode_utf8_lossy().into_owned()),
        }
    }
pub fn into_name ( self ) -> Option < String > { match self { Filename :: Name ( None ) => None , Filename :: Name ( Some ( name ) ) => Some ( name ) , Filename :: Extended ( _ , name ) => Some ( percent_decode_str ( & name ) . decode_utf8_lossy ( ) . into_owned ( ) ) , } }
Consumes self and returns file name, if present.
Consumes self and returns file name if present .
self