Struct sass_alt::SassContext
[−]
[src]
pub struct SassContext<S: DataOrFileSassContextMutPointer>(_, _, _, _);
Wraps a SASS data or file context and holds a list of function used by that context.
Methods
impl<S: DataOrFileSassContextMutPointer> SassContext<S>
[src]
fn new_with_data<'p, P: AsRef<Path>>(
sass_input_data: &str,
useful_sass_options: &SassOptions<'p, P>
) -> SassContext<*mut Sass_Data_Context>
[src]
sass_input_data: &str,
useful_sass_options: &SassOptions<'p, P>
) -> SassContext<*mut Sass_Data_Context>
Creates a new SassContext from data and options.
fn new_with_file<'p, P: AsRef<Path>>(
sass_input_file_path: P,
useful_sass_options: &SassOptions<'p, P>
) -> SassContext<*mut Sass_File_Context>
[src]
sass_input_file_path: P,
useful_sass_options: &SassOptions<'p, P>
) -> SassContext<*mut Sass_File_Context>
Creates a new SassContext from a file and options.
fn compile(&self) -> Result<String, SassCompileError>
[src]
Compiles SASS data.