[][src]Struct binjs_io::multipart::Statistics

pub struct Statistics {
    pub grammar_table: SectionStatistics,
    pub strings_table: SectionStatistics,
    pub tree: SectionStatistics,
    pub per_kind_index: VecMap<NodeStatistics>,
    pub per_kind_name: HashMap<InterfaceName, NodeStatistics>,
    pub per_description: HashMap<NodeDescription, NodeStatistics>,
    pub list_lengths: VecMap<usize>,
    pub string_lengths: VecMap<usize>,
    pub string_usage: VecMap<usize>,
    pub bool: NodeStatistics,
    pub float: NodeStatistics,
    pub unsigned_long: NodeStatistics,
    pub string: NodeStatistics,
    pub list: NodeStatistics,
    pub offset: NodeStatistics,
    pub list_header: NodeStatistics,
    pub tagged_header: NodeStatistics,
    pub tagged_tuple: NodeStatistics,
    pub number_of_files: usize,
    pub uncompressed_bytes: usize,
    pub compressed_bytes: usize,
    pub source_bytes: Option<usize>,
}

Fields

grammar_table: SectionStatisticsstrings_table: SectionStatisticstree: SectionStatisticsper_kind_index: VecMap<NodeStatistics>per_kind_name: HashMap<InterfaceName, NodeStatistics>per_description: HashMap<NodeDescription, NodeStatistics>list_lengths: VecMap<usize>

Mapping length -> number of lists of that length.

string_lengths: VecMap<usize>

Mapping length -> number of strings of that length.

string_usage: VecMap<usize>

Mapping number of occurrences -> number of lists of that length.

bool: NodeStatisticsfloat: NodeStatisticsunsigned_long: NodeStatisticsstring: NodeStatisticslist: NodeStatisticsoffset: NodeStatisticslist_header: NodeStatisticstagged_header: NodeStatisticstagged_tuple: NodeStatisticsnumber_of_files: usizeuncompressed_bytes: usizecompressed_bytes: usizesource_bytes: Option<usize>

Methods

impl Statistics[src]

pub fn with_source_bytes(self, source_bytes: usize) -> Self[src]

Trait Implementations

impl Add<Statistics> for Statistics[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<Statistics> for Statistics[src]

impl Clone for Statistics[src]

impl Debug for Statistics[src]

impl Default for Statistics[src]

impl Display for Statistics[src]

Auto Trait Implementations

impl !RefUnwindSafe for Statistics

impl !Send for Statistics

impl !Sync for Statistics

impl Unpin for Statistics

impl UnwindSafe for Statistics

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]