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>>, Global>>,
}

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>>, Global>>

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§

Trait Implementations§

source§

impl<Map: Clone> Clone for GenericElementAndPseudoRules<Map>

source§

fn clone(&self) -> GenericElementAndPseudoRules<Map>

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<Map: Debug> Debug for GenericElementAndPseudoRules<Map>

source§

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

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

impl<Map: Default> Default for GenericElementAndPseudoRules<Map>

source§

fn default() -> GenericElementAndPseudoRules<Map>

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

impl<Map> MallocSizeOf for GenericElementAndPseudoRules<Map>where Map: 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.