pub fn up_to_date(src: &Path, dst: &Path) -> bool {
    let threshold = mtime(dst);
    let meta = match fs::metadata(src) {
        Ok(meta) => meta,
        Err(e) => panic!("source {:?} failed to get metadata: {}", src, e),
    };
    if meta.is_dir() {
        dir_up_to_date(src, &threshold)
    } else {
        FileTime::from_last_modification_time(&meta) <= threshold
    }
}
/// Returns whether `dst` is up to date given that the file or files in `src`
/// are used to generate it.
///
/// Uses last-modified time checks to verify this.
Returns whether `dst` is up to date given that the file or files in `src`
are used to generate it.

Uses last-modified time checks to verify this.
Returns whether ` dst ` is up to date given that the file or files in ` src ` are used to generate it . Uses last - modified time checks to verify this .
pub fn up_to_date(src: &Path, dst: &Path) -> bool {
    let threshold = mtime(dst);
    let meta = match fs::metadata(src) {
        Ok(meta) => meta,
        Err(e) => panic!("source {:?} failed to get metadata: {}", src, e),
    };
    if meta.is_dir() {
        dir_up_to_date(src, &threshold)
    } else {
        FileTime::from_last_modification_time(&meta) <= threshold
    }
}
pub fn up_to_date ( src : & Path , dst : & Path ) -> bool { let threshold = mtime ( dst ) ; let meta = match fs :: metadata ( src ) { Ok ( meta ) => meta , Err ( e ) => panic ! ( " " src e ) , } ; if meta . is_dir ( ) { dir_up_to_date ( src , & threshold ) } else { FileTime :: from_last_modification_time ( & meta ) <= threshold } }
Returns whether `dst` is up to date given that the file or files in `src`
are used to generate it.
Returns whether ` dst ` is up to date given that the file or files in ` src ` are used to generate it .
src
&Path
dst
&Path
src
&Path
dst
&Path