Struct style::selector_parser::PerPseudoElementMap
[−]
[src]
pub struct PerPseudoElementMap<T> { /* fields omitted */ }
A per-pseudo map, from a given pseudo to a T
.
Methods
impl<T> PerPseudoElementMap<T>
[src]
pub fn get(&self, pseudo: &PseudoElement) -> Option<&T>
[src]
Get an entry in the map.
pub fn clear(&mut self)
[src]
Clear this enumerated array.
pub fn set(&mut self, pseudo: &PseudoElement, value: T)
[src]
Set an entry value.
Returns an error if the element is not a simple pseudo.
ⓘImportant traits for &'a mut Wpub fn get_or_insert_with<F>(&mut self, pseudo: &PseudoElement, f: F) -> &mut T where
F: FnOnce() -> T,
[src]
ⓘImportant traits for &'a mut W
F: FnOnce() -> T,
Get an entry for pseudo
, or create it with calling f
.
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<Option<T>>
[src]
ⓘImportant traits for Iter<'a, T>
Get an iterator for the entries.
Trait Implementations
impl<T> MallocSizeOf for PerPseudoElementMap<T> where
T: MallocSizeOf,
[src]
T: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<T> Default for PerPseudoElementMap<T>
[src]
impl<T> Debug for PerPseudoElementMap<T> where
T: Debug,
[src]
T: Debug,