pub enum NestingSelector {
DirectChild,
Descendant,
AdjacentSibling,
GeneralSibling,
Custom(String),
}Expand description
CSS nesting selector types
Variants§
DirectChild
Direct child selector (>)
Descendant
Descendant selector (space)
AdjacentSibling
Adjacent sibling selector (+)
GeneralSibling
General sibling selector (~)
Custom(String)
Custom selector
Implementations§
Source§impl NestingSelector
impl NestingSelector
Sourcepub fn to_class_name(&self) -> String
pub fn to_class_name(&self) -> String
Get the CSS class name for this nesting selector
Sourcepub fn to_css_value(&self) -> String
pub fn to_css_value(&self) -> String
Get the CSS value for this nesting selector
Trait Implementations§
Source§impl Clone for NestingSelector
impl Clone for NestingSelector
Source§fn clone(&self) -> NestingSelector
fn clone(&self) -> NestingSelector
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 NestingSelector
impl Debug for NestingSelector
Source§impl<'de> Deserialize<'de> for NestingSelector
impl<'de> Deserialize<'de> for NestingSelector
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 NestingSelector
impl Display for NestingSelector
Source§impl Hash for NestingSelector
impl Hash for NestingSelector
Source§impl PartialEq for NestingSelector
impl PartialEq for NestingSelector
Source§impl Serialize for NestingSelector
impl Serialize for NestingSelector
impl Eq for NestingSelector
impl StructuralPartialEq for NestingSelector
Auto Trait Implementations§
impl Freeze for NestingSelector
impl RefUnwindSafe for NestingSelector
impl Send for NestingSelector
impl Sync for NestingSelector
impl Unpin for NestingSelector
impl UnwindSafe for NestingSelector
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.