Struct mapfile_parser::ProgressStats
source · pub struct ProgressStats {
pub undecomped_size: usize,
pub decomped_size: usize,
}Fields§
§undecomped_size: usize§decomped_size: usizeImplementations§
source§impl ProgressStats
impl ProgressStats
pub fn new() -> Self
pub fn total(&self) -> usize
pub fn undecomped_percentage(&self) -> f32
pub fn decomped_percentage(&self) -> f32
pub fn undecomped_percentage_total(&self, total_stats: &Self) -> f32
pub fn decomped_percentage_total(&self, total_stats: &Self) -> f32
pub fn get_as_frogress_entry(&self, name: &str) -> HashMap<String, usize>
pub fn get_header_as_str(category_column_size: usize) -> String
pub fn print_header(category_column_size: usize)
pub fn get_entry_as_str( &self, category: &str, total_stats: &Self, category_column_size: usize ) -> String
pub fn print( &self, category: &str, total_stats: &Self, category_column_size: usize )
Trait Implementations§
source§impl Clone for ProgressStats
impl Clone for ProgressStats
source§fn clone(&self) -> ProgressStats
fn clone(&self) -> ProgressStats
Returns a copy 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 ProgressStats
impl Debug for ProgressStats
Auto Trait Implementations§
impl RefUnwindSafe for ProgressStats
impl Send for ProgressStats
impl Sync for ProgressStats
impl Unpin for ProgressStats
impl UnwindSafe for ProgressStats
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