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§
Sourcefn canonicalize(
&self,
url: &str,
options: &ImporterOptions,
) -> Result<Option<Url>>
fn canonicalize( &self, url: &str, options: &ImporterOptions, ) -> Result<Option<Url>>
https://sass-lang.com/documentation/js-api/interfaces/Importer#canonicalize