diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-06-14 11:07:18 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-07-04 19:29:02 +0200 |
commit | 19f273db4533e8a1f148cc8d61e0f2db087427ad (patch) | |
tree | 5ad72c003675159a18ee746e7194cc70241a2700 /libimagref | |
parent | b219f06a6595638efaef745b715c23ae35eb8e6e (diff) |
Impl Ref::is_dangling()
Diffstat (limited to 'libimagref')
-rw-r--r-- | libimagref/src/reference.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libimagref/src/reference.rs b/libimagref/src/reference.rs index 6b994441..1066e53c 100644 --- a/libimagref/src/reference.rs +++ b/libimagref/src/reference.rs @@ -54,6 +54,11 @@ impl<'a> Ref<'a> { 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 /// This includes: /// - Hashsum of the file is still the same as stored in the Ref |