pub fn is_link(metadata: &Metadata) -> bool
Includes Windows junctions and other reparse points, not only symlinks.