[][src]Struct pixel_widgets::stylesheet::Style

pub struct Style { /* fields omitted */ }

A style loaded from a .pwss file.

Implementations

impl Style[src]

pub fn new(cache_size: usize, cache_offset: usize) -> Self[src]

Construct a new default style

pub async fn load<U: AsRef<str>, L: Loader>(
    loader: &L,
    url: U,
    cache_size: usize,
    cache_offset: usize
) -> Result<Self, Error>
[src]

Asynchronously load a stylesheet from a .pwss file. See the module documentation on how to write .pwss files.

pub async fn load_from_memory<L: Loader>(
    bytes: &[u8],
    loader: &L,
    cache_size: usize,
    cache_offset: usize
) -> Result<Self, Error>
[src]

Asynchronously load a stylesheet from a .pwss file already in memory. See the module documentation on how to write .pwss files.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

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> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.