pub fn link_or_copy<P: AsRef<Path>, Q: AsRef<Path>>( p: P, q: Q, ) -> Result<LinkOrCopy>
Copies p into q, preferring to use hard-linking if possible. The result indicates which of the two operations has been performed.
p
q