[−][src]Enum selectors::context::VisitedHandlingMode
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.
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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for VisitedHandlingMode
[src]
impl Debug for VisitedHandlingMode
[src]
impl Eq for VisitedHandlingMode
[src]
impl PartialEq<VisitedHandlingMode> for VisitedHandlingMode
[src]
fn eq(&self, other: &VisitedHandlingMode) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for VisitedHandlingMode
[src]
impl StructuralPartialEq for VisitedHandlingMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for VisitedHandlingMode
impl Send for VisitedHandlingMode
impl Sync for VisitedHandlingMode
impl Unpin for VisitedHandlingMode
impl UnwindSafe for VisitedHandlingMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,