[][src]Struct syncat_stylesheet::Stylesheet

pub struct Stylesheet { /* fields omitted */ }

A Stylesheet

Methods

impl Stylesheet[src]

pub fn resolve_basic(
    &self,
    scopes: &[&str],
    token: Option<&str>
) -> StyleBuilder
[src]

Resolves a style without context or indexed scopes

pub fn resolve(
    &self,
    context: &Context,
    scopes: &[(usize, &str)],
    token: Option<&str>
) -> StyleBuilder
[src]

Resolves a style, using the provided Context, and indexed scopes. The index is the index of the node within its parent.

impl Stylesheet[src]

pub fn from_reader<R: Read>(
    input: &mut R
) -> Result<Stylesheet, Box<dyn Error + Send + Sync>>
[src]

Creates a new Stylesheet by parsing the provided stream.

Trait Implementations

impl Default for Stylesheet[src]

impl Debug for Stylesheet[src]

impl FromStr for Stylesheet[src]

type Err = Box<dyn Error + Send + Sync>

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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]