Enum style::servo::selector_parser::NonTSPseudoClass
[−]
[src]
pub enum NonTSPseudoClass {
Active,
AnyLink,
Checked,
Disabled,
Enabled,
Focus,
Fullscreen,
Hover,
Indeterminate,
Lang(PseudoClassStringArg),
Link,
PlaceholderShown,
ReadWrite,
ReadOnly,
ServoNonZeroBorder,
ServoCaseSensitiveTypeAttr(Atom),
Target,
Visited,
}A non tree-structural pseudo-class. See https://drafts.csswg.org/selectors-4/#structural-pseudos
Variants
ActiveAnyLinkCheckedDisabledEnabledFocusFullscreenHoverIndeterminateLang(PseudoClassStringArg)LinkPlaceholderShownReadWriteReadOnlyServoNonZeroBorderServoCaseSensitiveTypeAttr(Atom)TargetVisited
Methods
impl NonTSPseudoClass[src]
pub fn state_flag(&self) -> ElementState[src]
Gets a given state flag for this pseudo-class. This is used to do selector matching, and it's set from the DOM.
pub fn document_state_flag(&self) -> DocumentState[src]
Get the document state flag associated with a pseudo-class, if any.
pub fn needs_cache_revalidation(&self) -> bool[src]
Returns true if the given pseudoclass should trigger style sharing cache revalidation.
pub fn is_attr_based(&self) -> bool[src]
Returns true if the evaluation of the pseudo-class depends on the element's attributes.
Trait Implementations
impl Clone for NonTSPseudoClass[src]
fn clone(&self) -> NonTSPseudoClass[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 Debug for NonTSPseudoClass[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for NonTSPseudoClass[src]
impl Hash for NonTSPseudoClass[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)[src]
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for NonTSPseudoClass[src]
fn eq(&self, __arg_0: &NonTSPseudoClass) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &NonTSPseudoClass) -> bool[src]
This method tests for !=.
impl MallocSizeOf for NonTSPseudoClass[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl ToCss for NonTSPseudoClass[src]
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write, [src]
W: Write,
Serialize self in CSS syntax, writing to dest.
fn to_css_string(&self) -> String[src]
Serialize self in CSS syntax and return a string. Read more
impl SelectorMethods for NonTSPseudoClass[src]
type Impl = SelectorImpl
fn visit<V>(&self, _: &mut V) -> bool where
V: SelectorVisitor<Impl = Self::Impl>, [src]
V: SelectorVisitor<Impl = Self::Impl>,