mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Document selectors::Visit
This commit is contained in:
parent
c14b766ff5
commit
1a6010f19f
2 changed files with 29 additions and 9 deletions
|
@ -19,7 +19,7 @@ use std::borrow::{Borrow, Cow};
|
|||
use std::fmt::{self, Display, Debug, Write};
|
||||
use std::iter::Rev;
|
||||
use std::slice;
|
||||
use visitor::SelectorVisitor;
|
||||
pub use visitor::{Visit, SelectorVisitor};
|
||||
|
||||
/// A trait that represents a pseudo-element.
|
||||
pub trait PseudoElement : Sized + ToCss {
|
||||
|
@ -326,14 +326,6 @@ impl AncestorHashes {
|
|||
}
|
||||
}
|
||||
|
||||
pub trait Visit {
|
||||
type Impl: SelectorImpl;
|
||||
|
||||
fn visit<V>(&self, visitor: &mut V) -> bool
|
||||
where
|
||||
V: SelectorVisitor<Impl = Self::Impl>;
|
||||
}
|
||||
|
||||
impl<Impl: SelectorImpl> Visit for Selector<Impl> {
|
||||
type Impl = Impl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue