[][src]Struct orbtk::theme::Selector

pub struct Selector {
    pub element: Option<String>,
    pub classes: HashSet<String>,
    pub pseudo_classes: HashSet<String>,
    pub relation: Option<Box<SelectorRelation>>,
}

Fields

element: Option<String>classes: HashSet<String>pseudo_classes: HashSet<String>relation: Option<Box<SelectorRelation>>

Methods

impl Selector[src]

pub fn new<S: Into<String>>(element: Option<S>) -> Self[src]

pub fn matches(&self, other: &Selector) -> bool[src]

pub fn with_class<S: Into<String>>(self, class: S) -> Self[src]

pub fn without_class<S: Into<String>>(self, class: S) -> Self[src]

pub fn with_pseudo_class<S: Into<String>>(self, pseudo_class: S) -> Self[src]

pub fn without_pseudo_class<S: Into<String>>(self, pseudo_class: S) -> Self[src]

impl Selector[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Clone for Selector[src]

impl Debug for Selector[src]

impl Default for Selector[src]

impl<T: Into<String>> From<T> for Selector[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> SetParameter for T

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.