[][src]Struct syncat_stylesheet::Stylesheet

pub struct Stylesheet { /* fields omitted */ }

Methods

impl Stylesheet[src]

pub fn from_file(path: impl AsRef<Path>) -> Result<Self>[src]

pub fn style(&self, query: &Query) -> Option<Style>[src]

Trait Implementations

impl Clone for Stylesheet[src]

impl Debug for Stylesheet[src]

impl Default for Stylesheet[src]

impl FromStr for Stylesheet[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(source: &str) -> Result<Self, Self::Err>[src]

Parses a Stylesheet from a string. Since no initial file path is provided, imports cannot be resolved so they are just ignored completely.

Auto Trait Implementations

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