[][src]Enum rsass::OutputStyle

pub enum OutputStyle {
    Expanded,
    Compressed,
}

Selected target format. Only formats that are variants of this type are supported by rsass.

Variants

Expanded
Compressed

Methods

impl OutputStyle[src]

pub fn variants() -> &'static [&'static str][src]

Get the names of the supported output styles.

pub fn write_root(
    &self,
    items: &[Item],
    globals: &mut dyn Scope,
    file_context: &FileContext
) -> Result<Vec<u8>, Error>
[src]

Write a slice of sass items in this format. The file_context is needed if there are @import statements in the sass file.

Trait Implementations

impl Clone for OutputStyle[src]

impl Copy for OutputStyle[src]

impl Eq for OutputStyle[src]

impl PartialEq<OutputStyle> for OutputStyle[src]

impl Debug for OutputStyle[src]

impl FromStr for OutputStyle[src]

Get an output style from its name.

type Err = String

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

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.

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]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,