pub struct DriftReport {
pub entries: Vec<DriftEntry>,
pub duplicates: Vec<DuplicateName>,
}Expand description
What a preset directory holds beyond the set this build ships.
Fields§
§entries: Vec<DriftEntry>One row per *.toml, in filename order.
duplicates: Vec<DuplicateName>Every display name claimed twice or more, in first-claim order.
Implementations§
Source§impl DriftReport
impl DriftReport
Sourcepub fn not_shipped(&self) -> usize
pub fn not_shipped(&self) -> usize
How many files carry a name the shipped set does not have.
Sourcepub fn has_drift(&self) -> bool
pub fn has_drift(&self) -> bool
Whether anything in the directory is not exactly what this build ships.
Sourcepub fn line(&self) -> Option<String>
pub fn line(&self) -> Option<String>
The one-line summary a shell prints after seeding, or None when the
directory is exactly the shipped set — which is the normal case and must
stay silent.
User-visible text: a shell prints it verbatim, after naming the subject itself. The subject is the caller’s because only the caller knows which directory resolved, and because a diagnostic the shell writes must not begin with an interpolation — a parent splits its stream on the first byte (ADR-0176).
Trait Implementations§
Source§impl Clone for DriftReport
impl Clone for DriftReport
Source§fn clone(&self) -> DriftReport
fn clone(&self) -> DriftReport
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 DriftReport
impl Debug for DriftReport
Source§impl Default for DriftReport
impl Default for DriftReport
Source§fn default() -> DriftReport
fn default() -> DriftReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for DriftReport
impl PartialEq for DriftReport
Source§fn eq(&self, other: &DriftReport) -> bool
fn eq(&self, other: &DriftReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DriftReport
impl StructuralPartialEq for DriftReport
Auto Trait Implementations§
impl Freeze for DriftReport
impl RefUnwindSafe for DriftReport
impl Send for DriftReport
impl Sync for DriftReport
impl Unpin for DriftReport
impl UnsafeUnpin for DriftReport
impl UnwindSafe for DriftReport
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.