Enum rsass::OutputStyle
source · pub enum OutputStyle {
Expanded,
Compressed,
}
Expand description
Selected target format. Only formats that are variants of this type are supported by rsass.
Variants§
Implementations§
source§impl OutputStyle
impl OutputStyle
sourcepub fn write_root(
&self,
items: &[Item],
globals: &mut dyn Scope,
file_context: &FileContext
) -> Result<Vec<u8>, Error>
pub fn write_root(
&self,
items: &[Item],
globals: &mut dyn Scope,
file_context: &FileContext
) -> Result<Vec<u8>, Error>
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§
source§impl Clone for OutputStyle
impl Clone for OutputStyle
source§fn clone(&self) -> OutputStyle
fn clone(&self) -> OutputStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OutputStyle
impl Debug for OutputStyle
source§impl FromStr for OutputStyle
impl FromStr for OutputStyle
Get an output style from its name.