mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
parent
d6bafde971
commit
b118ba72d0
11 changed files with 70 additions and 298 deletions
|
@ -145,15 +145,6 @@ impl<T> PerPseudoElementMap<T> {
|
|||
*self = Self::default();
|
||||
}
|
||||
|
||||
/// Invokes a callback on each non-None entry.
|
||||
pub fn for_each<F: FnMut(&mut T)>(&mut self, mut f: F) {
|
||||
for entry in self.entries.iter_mut() {
|
||||
if entry.is_some() {
|
||||
f(entry.as_mut().unwrap());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Set an entry value.
|
||||
///
|
||||
/// Returns an error if the element is not a simple pseudo.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue