Call non-functional pseudo-elements simple pseudo-element.

This commit is contained in:
Xidorn Quan 2017-07-12 15:07:29 +10:00
parent 01ea3cc3e3
commit 2649d0332a
4 changed files with 9 additions and 8 deletions

View file

@ -24,8 +24,9 @@ pub const EAGER_PSEUDOS: [PseudoElement; EAGER_PSEUDO_COUNT] = [
];
impl PseudoElement {
/// Executes a closure with each pseudo-element as an argument.
pub fn each<F>(mut fun: F)
/// Executes a closure with each simple (not functional)
/// pseudo-element as an argument.
pub fn each_simple<F>(mut fun: F)
where F: FnMut(Self),
{
% for pseudo in PSEUDOS: