Trait sass_alt::SassImporter
[−]
[src]
pub trait SassImporter: Debug { fn callback(
&mut self,
path: &CStr,
compiler: SassCompiler
) -> Result<Option<Vec<SassImportEntry>>, SassImporterError>; fn priority(&self) -> f64 { ... } }
A type to model SASS importers.
Include it by using use ::sass_alt::Sass_Import_Entry_Ext;
.
Required Methods
fn callback(
&mut self,
path: &CStr,
compiler: SassCompiler
) -> Result<Option<Vec<SassImportEntry>>, SassImporterError>
&mut self,
path: &CStr,
compiler: SassCompiler
) -> Result<Option<Vec<SassImportEntry>>, SassImporterError>
The implementation of this SASS importer.
path
is the value supplied in the @import
statement.
Return Ok(Some(entries)) with a list of import entries (sources of CSS or SASS data).
Return Ok(Some(None)) to tell libsass to handle the import by itself (as if no custom importer was in use).
Provided Methods
fn priority(&self) -> f64
The priority of this importer / header. And, weirdly, it really is a double-precision floating point value.