pub struct Summary {
pub total_count: usize,
pub files_with_todos: usize,
pub files_scanned: usize,
pub tag_counts: HashMap<String, usize>,
}Expand description
Summary statistics from a scan
Fields§
§total_count: usizeTotal number of TODO items found
files_with_todos: usizeNumber of files containing at least one TODO
files_scanned: usizeTotal number of files scanned
tag_counts: HashMap<String, usize>Count of items per tag type
Implementations§
Source§impl Summary
impl Summary
Sourcepub fn avg_items_per_file(&self) -> f64
pub fn avg_items_per_file(&self) -> f64
Calculate average items per file (returns 0.0 if no files with todos)
Sourcepub fn tag_percentage(&self, count: usize) -> f64
pub fn tag_percentage(&self, count: usize) -> f64
Calculate percentage for a given tag count
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Summary
impl<'de> Deserialize<'de> for Summary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Summary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Summary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Summary
impl Serialize for Summary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Summary
Auto Trait Implementations§
impl Freeze for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnwindSafe for Summary
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