[][src]Struct binjs::io::entropy::dictionary::UserExtensibleData

pub struct UserExtensibleData<T> {
    pub identifier_name_instances: HashMap<Option<IdentifierName>, T, RandomState>,
    pub property_key_instances: HashMap<Option<PropertyKey>, T, RandomState>,
    pub interface_name_instances: HashMap<InterfaceName, T, RandomState>,
    pub string_literal_instances: HashMap<Option<SharedString>, T, RandomState>,
    pub string_enum_instances: HashMap<SharedString, T, RandomState>,
    pub list_length_instances: HashMap<Option<u32>, T, RandomState>,
    pub float_instances: HashMap<Option<F64>, T, RandomState>,
    pub unsigned_long_instances: HashMap<u32, T, RandomState>,
}

A container for all the user-extensible data in files, e.g. string literals or numbers.

This container is used to collect statistics, such as the number of instances of a given string in a file, or the number of files that contain a given string.

Fields

identifier_name_instances: HashMap<Option<IdentifierName>, T, RandomState>

Instances of IdentifierName.

property_key_instances: HashMap<Option<PropertyKey>, T, RandomState>

Instances of PropertyKey

interface_name_instances: HashMap<InterfaceName, T, RandomState>

Instances of InterfaceName

string_literal_instances: HashMap<Option<SharedString>, T, RandomState>

Instances of string literals.

string_enum_instances: HashMap<SharedString, T, RandomState>

Instances of string enums.

list_length_instances: HashMap<Option<u32>, T, RandomState>

Instances of list lengths.

float_instances: HashMap<Option<F64>, T, RandomState>

Instances of floating-point numbers.

unsigned_long_instances: HashMap<u32, T, RandomState>

Instances of unsigned longs.

Methods

impl<T> UserExtensibleData<T>[src]

pub fn len(&self) -> usize[src]

Trait Implementations

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

impl<T> Debug for UserExtensibleData<T> where
    T: Debug
[src]

impl<T> Default for UserExtensibleData<T> where
    T: Default
[src]

impl<'de, T> Deserialize<'de> for UserExtensibleData<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Serialize for UserExtensibleData<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for UserExtensibleData<T>

impl<T> !Send for UserExtensibleData<T>

impl<T> !Sync for UserExtensibleData<T>

impl<T> Unpin for UserExtensibleData<T> where
    T: Unpin

impl<T> UnwindSafe for UserExtensibleData<T> where
    T: UnwindSafe

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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Downcast for T where
    T: 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, 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]