pub struct ContentSummary {
pub counts: HashMap<ContentCategory, usize>,
}Expand description
Summary of content types found in a mod.
Fields§
§counts: HashMap<ContentCategory, usize>Implementations§
Source§impl ContentSummary
impl ContentSummary
Sourcepub fn sorted_counts(&self) -> Vec<(ContentCategory, usize)>
pub fn sorted_counts(&self) -> Vec<(ContentCategory, usize)>
Return counts sorted by display order, excluding zero counts.
Sourcepub fn display_string(&self) -> String
pub fn display_string(&self) -> String
Format as a human-readable string like “5 textures, 2 meshes, 1 plugin”.
Trait Implementations§
Source§impl Clone for ContentSummary
impl Clone for ContentSummary
Source§fn clone(&self) -> ContentSummary
fn clone(&self) -> ContentSummary
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 ContentSummary
impl Debug for ContentSummary
Source§impl Default for ContentSummary
impl Default for ContentSummary
Source§fn default() -> ContentSummary
fn default() -> ContentSummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContentSummary
impl RefUnwindSafe for ContentSummary
impl Send for ContentSummary
impl Sync for ContentSummary
impl Unpin for ContentSummary
impl UnsafeUnpin for ContentSummary
impl UnwindSafe for ContentSummary
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