Enum selectors::context::VisitedHandlingMode [−][src]
pub enum VisitedHandlingMode { AllLinksUnvisited, AllLinksVisitedAndUnvisited, RelevantLinkVisited, }
The mode to use when matching unvisited and visited links.
Variants
All links are matched as if they are unvisted.
All links are matched as if they are visited and unvisited (both :link and :visited match).
This is intended to be used from invalidation code, to be conservative about whether we need to restyle a link.
A element’s “relevant link” is the element being matched if it is a link or the nearest ancestor link. The relevant link is matched as though it is visited, and all other links are matched as if they are unvisited.
Implementations
impl VisitedHandlingMode
[src]
impl VisitedHandlingMode
[src]pub fn matches_visited(&self) -> bool
[src]
pub fn matches_unvisited(&self) -> bool
[src]
Trait Implementations
impl Clone for VisitedHandlingMode
[src]
impl Clone for VisitedHandlingMode
[src]fn clone(&self) -> VisitedHandlingMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VisitedHandlingMode
[src]
impl Copy for VisitedHandlingMode
[src]impl Eq for VisitedHandlingMode
[src]
impl Eq for VisitedHandlingMode
[src]impl StructuralEq for VisitedHandlingMode
[src]
impl StructuralEq for VisitedHandlingMode
[src]Auto Trait Implementations
impl RefUnwindSafe for VisitedHandlingMode
impl RefUnwindSafe for VisitedHandlingMode
impl Send for VisitedHandlingMode
impl Send for VisitedHandlingMode
impl Sync for VisitedHandlingMode
impl Sync for VisitedHandlingMode
impl Unpin for VisitedHandlingMode
impl Unpin for VisitedHandlingMode
impl UnwindSafe for VisitedHandlingMode
impl UnwindSafe for VisitedHandlingMode