Impl Ref::is_dangling()
This commit is contained in:
parent
b219f06a65
commit
19f273db45
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue