[][src]Enum rsass::selectors::SelectorPart

pub enum SelectorPart {
    Simple(SassString),
    Descendant,
    RelOp(u8),
    Attribute {
        name: SassString,
        op: String,
        val: SassString,
    },
    PseudoElement {
        name: SassString,
        arg: Option<Selectors>,
    },
    Pseudo {
        name: SassString,
        arg: Option<Selectors>,
    },
    BackRef,
}

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

name: SassStringop: Stringval: SassString
PseudoElement

A css3 pseudo-element (::foo)

Fields of PseudoElement

name: SassStringarg: Option<Selectors>
Pseudo

A pseudo-class or a css2 pseudo-element (:foo)

Fields of Pseudo

name: SassStringarg: Option<Selectors>
BackRef

A sass backref (&), to be replaced with outer selector.

Trait Implementations

impl Clone for 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 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]

impl PartialEq<SelectorPart> for SelectorPart[src]

impl Display for SelectorPart[src]

impl Debug for SelectorPart[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.