[−][src]Enum rsass::selectors::SelectorPart
A selector consist of a sequence of these parts.
Variants
Simple(SassString)
A simple selector, eg a class, id or element name.
Note that a Simple selector can hide a more complex selector through string interpolation.
Descendant
The empty relational operator.
The thing after this is a descendant of the thing before this.
RelOp(u8)
A relational operator; >
, +
, ~
.
Attribute
An attribute selector
Fields of Attribute
PseudoElement
A css3 pseudo-element (::foo)
Fields of PseudoElement
name: SassString
arg: Option<Selectors>
Pseudo
A pseudo-class or a css2 pseudo-element (:foo)
Fields of Pseudo
name: SassString
arg: Option<Selectors>
BackRef
A sass backref (&
), to be replaced with outer selector.
Trait Implementations
impl Clone for SelectorPart
[src]
fn clone(&self) -> SelectorPart
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for SelectorPart
[src]
fn cmp(&self, other: &SelectorPart) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Eq for SelectorPart
[src]
impl PartialOrd<SelectorPart> for SelectorPart
[src]
fn partial_cmp(&self, other: &SelectorPart) -> Option<Ordering>
[src]
fn lt(&self, other: &SelectorPart) -> bool
[src]
fn le(&self, other: &SelectorPart) -> bool
[src]
fn gt(&self, other: &SelectorPart) -> bool
[src]
fn ge(&self, other: &SelectorPart) -> bool
[src]
impl PartialEq<SelectorPart> for SelectorPart
[src]
fn eq(&self, other: &SelectorPart) -> bool
[src]
fn ne(&self, other: &SelectorPart) -> bool
[src]
impl Display for SelectorPart
[src]
impl Debug for SelectorPart
[src]
Auto Trait Implementations
impl Send for SelectorPart
impl Sync for SelectorPart
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,