Impl Ref::is_ref_to_file()

This commit is contained in:
Matthias Beyer 2016-06-14 11:08:58 +02:00
parent 19f273db45
commit 682acfcf81

View file

@ -54,6 +54,11 @@ impl<'a> Ref<'a> {
unimplemented!() unimplemented!()
} }
/// Alias for `r.fs_link_exists() && r.deref().is_file()`
pub fn is_ref_to_file(&self) -> bool {
unimplemented!()
}
/// Alias for `!Ref::fs_link_exists()` /// Alias for `!Ref::fs_link_exists()`
pub fn is_dangling(&self) -> bool { pub fn is_dangling(&self) -> bool {
!self.fs_link_exists() !self.fs_link_exists()