pub enum NestingPseudoClass {
Hover,
Focus,
Active,
Visited,
Link,
FirstChild,
LastChild,
NthChild(String),
Custom(String),
}Expand description
CSS nesting pseudo-class types
Variants§
Hover
Hover pseudo-class
Focus
Focus pseudo-class
Active
Active pseudo-class
Visited
Visited pseudo-class
Link
Link pseudo-class
FirstChild
First child pseudo-class
LastChild
Last child pseudo-class
NthChild(String)
Nth child pseudo-class
Custom(String)
Custom pseudo-class
Implementations§
Source§impl NestingPseudoClass
impl NestingPseudoClass
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Get the CSS class name for this nesting pseudo-class
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Get the CSS value for this nesting pseudo-class
Trait Implementations§
Source§impl Clone for NestingPseudoClass
impl Clone for NestingPseudoClass
Source§fn clone(&self) -> NestingPseudoClass
fn clone(&self) -> NestingPseudoClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NestingPseudoClass
impl Debug for NestingPseudoClass
Source§impl<'de> Deserialize<'de> for NestingPseudoClass
impl<'de> Deserialize<'de> for NestingPseudoClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for NestingPseudoClass
impl Display for NestingPseudoClass
Source§impl Hash for NestingPseudoClass
impl Hash for NestingPseudoClass
Source§impl PartialEq for NestingPseudoClass
impl PartialEq for NestingPseudoClass
Source§impl Serialize for NestingPseudoClass
impl Serialize for NestingPseudoClass
impl Eq for NestingPseudoClass
impl StructuralPartialEq for NestingPseudoClass
Auto Trait Implementations§
impl Freeze for NestingPseudoClass
impl RefUnwindSafe for NestingPseudoClass
impl Send for NestingPseudoClass
impl Sync for NestingPseudoClass
impl Unpin for NestingPseudoClass
impl UnwindSafe for NestingPseudoClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.