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.
Methods
impl VisitedHandlingMode
[src]
pub fn matches_visited(&self) -> bool
[src]
pub fn matches_unvisited(&self) -> bool
[src]
Trait Implementations
impl Clone for VisitedHandlingMode
[src]
fn clone(&self) -> VisitedHandlingMode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for VisitedHandlingMode
[src]
impl Debug for VisitedHandlingMode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more