[][src]Struct binjs_io::entropy::dictionary::UserExtensibleData

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

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>

Instances of IdentifierName.

property_key_instances: HashMap<Option<PropertyKey>, T>

Instances of PropertyKey

interface_name_instances: HashMap<InterfaceName, T>

Instances of InterfaceName

string_literal_instances: HashMap<Option<SharedString>, T>

Instances of string literals.

string_enum_instances: HashMap<SharedString, T>

Instances of string enums.

list_length_instances: HashMap<Option<u32>, T>

Instances of list lengths.

float_instances: HashMap<Option<F64>, T>

Instances of floating-point numbers.

unsigned_long_instances: HashMap<u32, T>

Instances of unsigned longs.

Methods

impl<T> UserExtensibleData<T>[src]

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

Trait Implementations

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

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

impl<T: Default> Default for UserExtensibleData<T>[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]