style::invalidation::element::invalidation_map

Type Alias IdOrClassDependencyMap

Source
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>

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.