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

More information: Sass documentation

Required Methods§

Source

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

More information: Sass documentation

Source

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

More information: Sass documentation

Implementations on Foreign Types§

Source§

impl Importer for Arc<LegacyImporterWrapper>

Source§

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

Source§

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

Implementors§