[−][src]Struct casco::StyleSheet
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]
D: Driver<S>,
S: TokenStream,
pub fn parse(
driver: &mut D,
tokens: &[TokenTree<S>]
) -> Result<StyleSheet<D, S>, Vec<Error<D, S>>>
[src]
driver: &mut D,
tokens: &[TokenTree<S>]
) -> Result<StyleSheet<D, S>, Vec<Error<D, S>>>
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]
D: Driver<S>,
S: TokenStream,
Item<D, S>: Debug,
Auto Trait Implementations
impl<D, S> RefUnwindSafe for StyleSheet<D, S> where
<D as Driver<S>>::Property: RefUnwindSafe,
<D as Driver<S>>::Rule: RefUnwindSafe,
<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,
<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,
<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,
<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,
<D as Driver<S>>::Property: UnwindSafe,
<D as Driver<S>>::Rule: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,