pub struct ScanSummary {
pub total_count: usize,
pub files_with_todos: usize,
pub files_scanned: usize,
pub tag_counts: HashMap<String, usize>,
}Fields§
§total_count: usize§files_with_todos: usize§files_scanned: usize§tag_counts: HashMap<String, usize>Implementations§
Source§impl ScanSummary
impl ScanSummary
pub fn avg_items_per_file(&self) -> f64
pub fn tag_percentage(&self, count: usize) -> f64
Trait Implementations§
Source§impl Clone for ScanSummary
impl Clone for ScanSummary
Source§fn clone(&self) -> ScanSummary
fn clone(&self) -> ScanSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 ScanSummary
impl Debug for ScanSummary
Source§impl<'de> Deserialize<'de> for ScanSummary
impl<'de> Deserialize<'de> for ScanSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScanSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScanSummary
impl PartialEq for ScanSummary
Source§impl Serialize for ScanSummary
impl Serialize for ScanSummary
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 ScanSummary
Auto Trait Implementations§
impl Freeze for ScanSummary
impl RefUnwindSafe for ScanSummary
impl Send for ScanSummary
impl Sync for ScanSummary
impl Unpin for ScanSummary
impl UnsafeUnpin for ScanSummary
impl UnwindSafe for ScanSummary
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