pub enum PackageDrift {
None,
Absent(PathBuf),
Differs(PathBuf),
Stale(PathBuf),
}Expand description
What a comparison of a generated package against the files on disk found.
Variants§
None
Every file on disk holds the generated code, and no other file does.
Absent(PathBuf)
A file generation would write does not exist.
Differs(PathBuf)
A file exists and holds different content.
Stale(PathBuf)
A file an earlier run wrote is still there, and this run does not produce it.
Trait Implementations§
Source§impl Clone for PackageDrift
impl Clone for PackageDrift
Source§fn clone(&self) -> PackageDrift
fn clone(&self) -> PackageDrift
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageDrift
impl Debug for PackageDrift
impl Eq for PackageDrift
Source§impl PartialEq for PackageDrift
impl PartialEq for PackageDrift
impl StructuralPartialEq for PackageDrift
Auto Trait Implementations§
impl Freeze for PackageDrift
impl RefUnwindSafe for PackageDrift
impl Send for PackageDrift
impl Sync for PackageDrift
impl Unpin for PackageDrift
impl UnsafeUnpin for PackageDrift
impl UnwindSafe for PackageDrift
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.