Impl Ref::is_dangling()

This commit is contained in:
Matthias Beyer 2016-06-14 11:07:18 +02:00
parent b219f06a65
commit 19f273db45

View file

@ -54,6 +54,11 @@ impl<'a> Ref<'a> {
unimplemented!() unimplemented!()
} }
/// Alias for `!Ref::fs_link_exists()`
pub fn is_dangling(&self) -> bool {
!self.fs_link_exists()
}
/// check whether the pointer the Ref represents is valid /// check whether the pointer the Ref represents is valid
/// This includes: /// This includes:
/// - Hashsum of the file is still the same as stored in the Ref /// - Hashsum of the file is still the same as stored in the Ref