Enum selectors::context::VisitedHandlingMode[][src]

pub enum VisitedHandlingMode {
    AllLinksUnvisited,
    AllLinksVisitedAndUnvisited,
    RelevantLinkVisited,
}

The mode to use when matching unvisited and visited links.

Variants

AllLinksUnvisited

All links are matched as if they are unvisted.

AllLinksVisitedAndUnvisited

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.

RelevantLinkVisited

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]

pub fn matches_visited(&self) -> bool[src]

pub fn matches_unvisited(&self) -> bool[src]

Trait Implementations

impl Clone for VisitedHandlingMode[src]

impl Copy for VisitedHandlingMode[src]

impl Debug for VisitedHandlingMode[src]

impl Eq for VisitedHandlingMode[src]

impl PartialEq<VisitedHandlingMode> for VisitedHandlingMode[src]

impl StructuralEq for VisitedHandlingMode[src]

impl StructuralPartialEq for VisitedHandlingMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.