pub struct FileStats {
pub total_decls: u32,
pub axioms: u32,
pub definitions: u32,
pub theorems: u32,
pub opaques: u32,
pub inductives: u32,
pub other: u32,
pub total_bytes: usize,
}Expand description
Statistics about a serialized file.
Fields§
§total_decls: u32§axioms: u32§definitions: u32§theorems: u32§opaques: u32§inductives: u32§other: u32§total_bytes: usizeImplementations§
Source§impl FileStats
impl FileStats
Sourcepub fn from_decls(decls: &[SerialDecl], total_bytes: usize) -> Self
pub fn from_decls(decls: &[SerialDecl], total_bytes: usize) -> Self
Build stats from a list of declarations and total byte size.
Sourcepub fn bytes_per_decl(&self) -> f64
pub fn bytes_per_decl(&self) -> f64
Return the average bytes per declaration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileStats
impl RefUnwindSafe for FileStats
impl Send for FileStats
impl Sync for FileStats
impl Unpin for FileStats
impl UnsafeUnpin for FileStats
impl UnwindSafe for FileStats
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