Enum css::domain::selectors::NonTreeStructuralPseudoClass
[−]
[src]
pub enum NonTreeStructuralPseudoClass { active, any(Option<VendorPrefix>, DeduplicatedSelectors), any_link(Option<VendorPrefix>), case_sensitive_type_attr(Option<VendorPrefix>, Atom), checked, default, dir(Option<VendorPrefix>, TextDirectionality), disabled, enabled, first, focus, focus_within, in_range, invalid, fullscreen(Option<VendorPrefix>), hover, indeterminate, lang(LanguageRanges), left, link, non_zero_border(Option<VendorPrefix>), optional, out_of_range, placeholder_shown(Option<VendorPrefix>), read_only(Option<VendorPrefix>), read_write(Option<VendorPrefix>), required, right, target, valid, visited, }
A non tree-structural pseudo-class. See https://drafts.csswg.org/selectors-4/#structural-pseudos
Variants
active
any(Option<VendorPrefix>, DeduplicatedSelectors)
any_link(Option<VendorPrefix>)
case_sensitive_type_attr(Option<VendorPrefix>, Atom)
checked
default
dir(Option<VendorPrefix>, TextDirectionality)
disabled
enabled
first
focus
focus_within
in_range
invalid
fullscreen(Option<VendorPrefix>)
hover
indeterminate
lang(LanguageRanges)
left
link
non_zero_border(Option<VendorPrefix>)
optional
out_of_range
placeholder_shown(Option<VendorPrefix>)
read_only(Option<VendorPrefix>)
read_write(Option<VendorPrefix>)
required
right
target
valid
visited
Methods
impl NonTreeStructuralPseudoClass
[src]
fn is_attr_based(&self) -> bool
[src]
Returns true if the evaluation of the pseudo-class depends on the element's attributes.
fn is_safe_user_action_state(&self) -> bool
[src]
https://drafts.csswg.org/selectors-4/#useraction-pseudos
We intentionally skip the link-related ones.
Trait Implementations
impl Clone for NonTreeStructuralPseudoClass
[src]
fn clone(&self) -> NonTreeStructuralPseudoClass
[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 NonTreeStructuralPseudoClass
[src]
impl Eq for NonTreeStructuralPseudoClass
[src]
impl PartialEq for NonTreeStructuralPseudoClass
[src]
fn eq(&self, __arg_0: &NonTreeStructuralPseudoClass) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NonTreeStructuralPseudoClass) -> bool
[src]
This method tests for !=
.
impl ToCss for NonTreeStructuralPseudoClass
[src]
fn to_css<W: Write>(&self, dest: &mut W) -> Result
[src]
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