pub mod display_rich;
use std::path::Path;
pub use display_rich::{DisplayRichExt, RichDisplay};
pub trait PathExt {
fn is_dangling_symlink(&self) -> bool;
}
impl<P: AsRef<Path>> PathExt for P {
fn is_dangling_symlink(&self) -> bool {
let path: &Path = self.as_ref();
path.is_symlink() && !path.exists()
}
}