pub type IdOrClassDependencyMap = MaybeCaseInsensitiveHashMap<Atom, SmallVec<[Dependency; 1]>>;
Expand description

Dependency mapping for classes or IDs.

Aliased Type§

struct IdOrClassDependencyMap(HashMap<Atom<AtomStaticSet>, SmallVec<[Dependency; 1]>, BuildHasherDefault<PrecomputedHasher>>);

Fields§

§0: HashMap<Atom<AtomStaticSet>, SmallVec<[Dependency; 1]>, BuildHasherDefault<PrecomputedHasher>>

Implementations§

source§

impl<V> MaybeCaseInsensitiveHashMap<Atom, V>

source

pub fn new() -> Self

Empty map

source

pub fn shrink_if_needed(&mut self)

Shrink the capacity of the map if needed.

source

pub fn try_entry( &mut self, key: Atom, quirks_mode: QuirksMode ) -> Result<Entry<'_, Atom, V>, AllocErr>

HashMap::try_entry

source

pub fn is_empty(&self) -> bool

HashMap::is_empty

source

pub fn iter(&self) -> Iter<'_, Atom, V>

HashMap::iter

source

pub fn clear(&mut self)

HashMap::clear

source

pub fn get(&self, key: &WeakAtom, quirks_mode: QuirksMode) -> Option<&V>

HashMap::get

Trait Implementations§

source§

impl<K: Clone + PrecomputedHash + Hash + Eq, V: Clone> Clone for MaybeCaseInsensitiveHashMap<K, V>

source§

fn clone(&self) -> MaybeCaseInsensitiveHashMap<K, V>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<K: Debug + PrecomputedHash + Hash + Eq, V: Debug> Debug for MaybeCaseInsensitiveHashMap<K, V>

source§

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

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

impl<V> Default for MaybeCaseInsensitiveHashMap<Atom, V>

source§

fn default() -> Self

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

impl<K, V> MallocSizeOf for MaybeCaseInsensitiveHashMap<K, V>where K: MallocSizeOf + PrecomputedHash + Hash + Eq, V: MallocSizeOf,

source§

fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself.