Enum rsass::OutputStyle [−][src]
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]
impl OutputStyle
pub fn variants() -> &'static [&'static str]
[src]
pub fn variants() -> &'static [&'static str]
Get the names of the supported output styles.
pub fn write_root(
&self,
items: &[Item],
globals: &mut Scope,
file_context: &FileContext
) -> Result<Vec<u8>, Error>
[src]
pub fn write_root(
&self,
items: &[Item],
globals: &mut 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
impl Clone for OutputStyle
[src]
impl Clone for OutputStyle
fn clone(&self) -> OutputStyle
[src]
fn clone(&self) -> OutputStyle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for OutputStyle
[src]
impl Copy for OutputStyle
impl Debug for OutputStyle
[src]
impl Debug for OutputStyle
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for OutputStyle
[src]
impl PartialEq for OutputStyle
fn eq(&self, other: &OutputStyle) -> bool
[src]
fn eq(&self, other: &OutputStyle) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for OutputStyle
[src]
impl Eq for OutputStyle
impl FromStr for OutputStyle
[src]
impl FromStr for OutputStyle
Get an output style from its name.
Auto Trait Implementations
impl Send for OutputStyle
impl Send for OutputStyle
impl Sync for OutputStyle
impl Sync for OutputStyle