type PartElementAndPseudoRules = GenericElementAndPseudoRules<PrecomputedHashMap<Atom, SmallVec<[Rule; 1]>>>;
Aliased Type§
struct PartElementAndPseudoRules {
element_map: HashMap<Atom<AtomStaticSet>, SmallVec<[Rule; 1]>, BuildHasherDefault<PrecomputedHasher>>,
pseudos_map: PerPseudoElementMap<Box<HashMap<Atom<AtomStaticSet>, SmallVec<[Rule; 1]>, BuildHasherDefault<PrecomputedHasher>>>>,
}
Fields§
§element_map: HashMap<Atom<AtomStaticSet>, SmallVec<[Rule; 1]>, BuildHasherDefault<PrecomputedHasher>>
Rules from stylesheets at this CascadeData
’s origin.
pseudos_map: PerPseudoElementMap<Box<HashMap<Atom<AtomStaticSet>, SmallVec<[Rule; 1]>, BuildHasherDefault<PrecomputedHasher>>>>
Rules from stylesheets at this CascadeData
’s origin that correspond
to a given pseudo-element.
FIXME(emilio): There are a bunch of wasted entries here in practice.
Figure out a good way to do a PerNonAnonBox
and PerAnonBox
(for
precomputed_values_for_pseudo
) without duplicating a lot of code.
Implementations
Source§impl<Map: Default + MallocSizeOf> GenericElementAndPseudoRules<Map>
impl<Map: Default + MallocSizeOf> GenericElementAndPseudoRules<Map>
fn for_insertion(&mut self, pseudo_element: Option<&PseudoElement>) -> &mut Map
fn rules(&self, pseudo: Option<&PseudoElement>) -> Option<&Map>
Trait Implementations
Source§impl<Map: Clone> Clone for GenericElementAndPseudoRules<Map>
impl<Map: Clone> Clone for GenericElementAndPseudoRules<Map>
Source§fn clone(&self) -> GenericElementAndPseudoRules<Map>
fn clone(&self) -> GenericElementAndPseudoRules<Map>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Map: Debug> Debug for GenericElementAndPseudoRules<Map>
impl<Map: Debug> Debug for GenericElementAndPseudoRules<Map>
Source§impl<Map: Default> Default for GenericElementAndPseudoRules<Map>
impl<Map: Default> Default for GenericElementAndPseudoRules<Map>
Source§fn default() -> GenericElementAndPseudoRules<Map>
fn default() -> GenericElementAndPseudoRules<Map>
Returns the “default value” for a type. Read more
Source§impl<Map> MallocSizeOf for GenericElementAndPseudoRules<Map>where
Map: MallocSizeOf,
impl<Map> MallocSizeOf for GenericElementAndPseudoRules<Map>where
Map: MallocSizeOf,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
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.