Importer

Trait Importer 

Source
pub trait Importer:
    Debug
    + Send
    + Sync {
    // Required methods
    fn canonicalize(
        &self,
        url: &str,
        options: &ImporterOptions,
    ) -> Result<Option<Url>>;
    fn load(&self, canonical_url: &Url) -> Result<Option<ImporterResult>>;
}
Expand description

https://sass-lang.com/documentation/js-api/interfaces/Importer

Required Methods§

Source

fn canonicalize( &self, url: &str, options: &ImporterOptions, ) -> Result<Option<Url>>

https://sass-lang.com/documentation/js-api/interfaces/Importer#canonicalize

Source

fn load(&self, canonical_url: &Url) -> Result<Option<ImporterResult>>

https://sass-lang.com/documentation/js-api/interfaces/Importer#load

Implementors§