/// Makes a copy-on-write copy of file located at src into dst.  This is
/// typically a much faster operation than copying file contents, but it's
/// supported not by all file systems. Note that cloning is only supported
/// between paths located on the same filesystem.
///
/// # Errors
///
/// * Returns Err(OperationNotSupported) if the underlying filesystem doesn't
///   support clones.
///
/// * Returns low-level Err(IoError(e)) if one of files can't be open or the
///   corresponding syscall fails for some reason.
Makes a copy-on-write copy of file located at src into dst.  This is
typically a much faster operation than copying file contents, but it's
supported not by all file systems. Note that cloning is only supported
between paths located on the same filesystem.
Makes a copy - on - write copy of file located at src into dst . This is typically a much faster operation than copying file contents but it ' s supported not by all file systems . Note that cloning is only supported between paths located on the same filesystem .
pub fn clone_file(src: &Path, dst: &Path) -> Result<(), FileCloneError> {
    if *crate::IS_WSL {
        Err(FileCloneError::OperationNotSupported)
    } else {
        clone_file_impl(src, dst)
    }
}
pub fn clone_file ( src : & Path , dst : & Path ) -> Result < ( ) , FileCloneError > { if * crate :: IS_WSL { Err ( FileCloneError :: OperationNotSupported ) } else { clone_file_impl ( src , dst ) } }
Makes a copy-on-write copy of file located at src into dst.
Makes a copy - on - write copy of file located at src into dst .
src
&Path
dst
&Path
errors
Returns Err(OperationNotSupported) if the underlying filesystem doesn't
support clones.

Returns low-level Err(IoError(e)) if one of files can't be open or the
corresponding syscall fails for some reason.
Returns Err ( OperationNotSupported ) if the underlying filesystem doesn ' t support clones . Returns low - level Err ( IoError ( e )) if one of files can ' t be open or the corresponding syscall fails for some reason .