[][src]Enum casco::Item

pub enum Item<D, S> where
    D: Driver<S>,
    S: TokenStream
{ Property(D::Property), Rule(D::Rule), }

Represents a single domain-specific item (either a property or a rule).

Variants

Property(D::Property)

Represents a parsed CSS-like property that started with a sequence of tokens which usually is the name, a color, another sequence of tokens which is usually the value and finally ended with a semicolon, prior to being parsed into a domain-specific representation.

Rule(D::Rule)

Represents a parsed CSS-like rule that started with a preamble that usually contains the selectors and ended with a { ... } delimited group, prior to being parsed into a domain-specific representation.

Trait Implementations

impl<D, S> Debug for Item<D, S> where
    D: Driver<S>,
    S: TokenStream,
    D::Property: Debug,
    D::Rule: Debug
[src]

Auto Trait Implementations

impl<D, S> RefUnwindSafe for Item<D, S> where
    <D as Driver<S>>::Property: RefUnwindSafe,
    <D as Driver<S>>::Rule: RefUnwindSafe

impl<D, S> Send for Item<D, S> where
    <D as Driver<S>>::Property: Send,
    <D as Driver<S>>::Rule: Send

impl<D, S> Sync for Item<D, S> where
    <D as Driver<S>>::Property: Sync,
    <D as Driver<S>>::Rule: Sync

impl<D, S> Unpin for Item<D, S> where
    <D as Driver<S>>::Property: Unpin,
    <D as Driver<S>>::Rule: Unpin

impl<D, S> UnwindSafe for Item<D, S> where
    <D as Driver<S>>::Property: UnwindSafe,
    <D as Driver<S>>::Rule: UnwindSafe

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, 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.