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