[][src]Enum simplecss::AttributeOperator

pub enum AttributeOperator<'a> {
    Exists,
    Matches(&'a str),
    Contains(&'a str),
    StartsWith(&'a str),
}

An attribute selector operator.

Variants

Exists

[attr]

Matches(&'a str)

[attr=value]

Contains(&'a str)

[attr~=value]

StartsWith(&'a str)

[attr|=value]

Methods

impl<'a> AttributeOperator<'a>[src]

pub fn matches(&self, value: &str) -> bool[src]

Checks that value is matching the operator.

Trait Implementations

impl<'a> Clone for AttributeOperator<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<AttributeOperator<'a>> for AttributeOperator<'a>[src]

impl<'a> Copy for AttributeOperator<'a>[src]

impl<'a> Debug for AttributeOperator<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for AttributeOperator<'a>

impl<'a> Send for AttributeOperator<'a>

impl<'a> Sync for AttributeOperator<'a>

impl<'a> RefUnwindSafe for AttributeOperator<'a>

impl<'a> UnwindSafe for AttributeOperator<'a>

Blanket Implementations

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

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

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.

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

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

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