[][src]Struct casco::StyleSheet

pub struct StyleSheet<D, S> where
    D: Driver<S>,
    S: TokenStream
{ pub items: Vec<Item<D, S>>, }

Domain-specific style sheet driven by an implementation of the Driver trait.

Fields

items: Vec<Item<D, S>>

Domain-specific items that are in the style sheet.

Implementations

impl<D, S> StyleSheet<D, S> where
    D: Driver<S>,
    S: TokenStream
[src]

pub fn parse(
    driver: &mut D,
    tokens: &[TokenTree<S>]
) -> Result<StyleSheet<D, S>, Vec<Error<D, S>>>
[src]

Attempts to the given token stream into a domain-specific style sheet.

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

impl<D, S> UnwindSafe for StyleSheet<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.