fn as_rs(fp: &Path) -> Option<PathBuf> {
    let maybe_ext = fp.extension();
    maybe_ext.and_then({
        |p| match p.to_str().unwrap() {
            "cpprs" => {
                let main_fp = fp.file_stem().unwrap();
                let mut return_pbuf = PathBuf::from(fp.parent().unwrap());
                return_pbuf.push(main_fp);
                return_pbuf.set_extension("rs");
                Some(return_pbuf)
            }
            _ => None,
        }
    })
}
// maybe get a .rs file name from a .cpprs file
maybe get a .rs file name from a .cpprs file
maybe get a . rs file name from a . cpprs file
fn as_rs(fp: &Path) -> Option<PathBuf> {
    let maybe_ext = fp.extension();
    maybe_ext.and_then({
        |p| match p.to_str().unwrap() {
            "cpprs" => {
                let main_fp = fp.file_stem().unwrap();
                let mut return_pbuf = PathBuf::from(fp.parent().unwrap());
                return_pbuf.push(main_fp);
                return_pbuf.set_extension("rs");
                Some(return_pbuf)
            }
            _ => None,
        }
    })
}
fn as_rs ( fp : & Path ) -> Option < PathBuf > { let maybe_ext = fp . extension ( ) ; maybe_ext . and_then ( { | p | match p . to_str ( ) . unwrap ( ) { " " => { let main_fp = fp . file_stem ( ) . unwrap ( ) ; let mut return_pbuf = PathBuf :: from ( fp . parent ( ) . unwrap ( ) ) ; return_pbuf . push ( main_fp ) ; return_pbuf . set_extension ( " " ) ; Some ( return_pbuf ) } _ => None , } } ) }
maybe get a .rs file name from a .cpprs file
maybe get a . rs file name from a . cpprs file
fp
&Path