pub struct UnindexedCounts {
pub files: usize,
/* private fields */
}Expand description
Files seen during a walk but not parsed, because their extension names no language gonzalo knows.
Deliberately distinct from IgnoredCounts (excluded on purpose) and from
the summary’s skipped (a parse failure). Without it, indexing a tree
gonzalo cannot read reported every count at zero and said nothing — so an
empty view was indistinguishable from an empty repository (#259).
Fields§
§files: usizeHow many such files were seen.
Implementations§
Source§impl UnindexedCounts
impl UnindexedCounts
Sourcepub fn record(&mut self, extension: Option<&str>)
pub fn record(&mut self, extension: Option<&str>)
Record a file gonzalo has no grammar for. extension is None for an
extensionless file, which is counted but names nothing.
Sourcepub fn extensions(&self) -> Vec<(String, usize)>
pub fn extensions(&self) -> Vec<(String, usize)>
The extensions responsible, most common first and alphabetical within a tie, so a report can name them rather than print a bare number.
Trait Implementations§
Source§impl Clone for UnindexedCounts
impl Clone for UnindexedCounts
Source§fn clone(&self) -> UnindexedCounts
fn clone(&self) -> UnindexedCounts
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 UnindexedCounts
impl Debug for UnindexedCounts
Source§impl Default for UnindexedCounts
impl Default for UnindexedCounts
Source§fn default() -> UnindexedCounts
fn default() -> UnindexedCounts
Returns the “default value” for a type. Read more
impl Eq for UnindexedCounts
Source§impl PartialEq for UnindexedCounts
impl PartialEq for UnindexedCounts
impl StructuralPartialEq for UnindexedCounts
Auto Trait Implementations§
impl Freeze for UnindexedCounts
impl RefUnwindSafe for UnindexedCounts
impl Send for UnindexedCounts
impl Sync for UnindexedCounts
impl Unpin for UnindexedCounts
impl UnsafeUnpin for UnindexedCounts
impl UnwindSafe for UnindexedCounts
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
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.