Skip to main content

ParserDfaStats

Struct ParserDfaStats 

Source
pub struct ParserDfaStats {
Show 17 fields pub states: usize, pub transitions: usize, pub max_row_width: usize, pub dense_rows: usize, pub sparse_rows: usize, pub empty_rows: usize, pub dense_slots: usize, pub sparse_entries: usize, pub row_width_histogram: [usize; 5], pub populated_edge_histogram: [usize; 6], pub edge_density_histogram: [usize; 6], pub hot_bytes: usize, pub cold_bytes: usize, pub states_created: usize, pub states_deduplicated: usize, pub fingerprint_candidates: usize, pub fingerprint_collisions: usize,
}
Expand description

Storage and learning measurements for one parser DFA.

Fields§

§states: usize§transitions: usize§max_row_width: usize§dense_rows: usize§sparse_rows: usize§empty_rows: usize§dense_slots: usize§sparse_entries: usize§row_width_histogram: [usize; 5]

Widths <=64, <=128, <=256, <=512, and >512.

§populated_edge_histogram: [usize; 6]

Populated-edge counts 0, 1, 2-3, 4-7, 8-15, and >=16.

§edge_density_histogram: [usize; 6]

Empty, <=1%, <=5%, <=12.5%, <=25%, and >25% populated rows.

§hot_bytes: usize§cold_bytes: usize§states_created: usize§states_deduplicated: usize§fingerprint_candidates: usize§fingerprint_collisions: usize

Trait Implementations§

Source§

impl Clone for ParserDfaStats

Source§

fn clone(&self) -> ParserDfaStats

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ParserDfaStats

Source§

impl Debug for ParserDfaStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ParserDfaStats

Source§

fn default() -> ParserDfaStats

Returns the “default value” for a type. Read more
Source§

impl Eq for ParserDfaStats

Source§

impl PartialEq for ParserDfaStats

Source§

fn eq(&self, other: &ParserDfaStats) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ParserDfaStats

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.