pub enum LegacyImporterResult {
    File(PathBuf),
    Contents {
        contents: String,
        file: Option<PathBuf>,
    },
}
Expand description

More information: Sass documentation

Variants

File(PathBuf)

An object with the key file whose value is a path on disk. This causes Sass to load that file as though it had been imported directly.

Contents

Fields

contents: String

The contents of the stylesheet.

file: Option<PathBuf>

The path to the stylesheet.

An object with the key contents whose value is the contents of a stylesheet (in SCSS syntax). This causes Sass to load that stylesheet’s contents.

Implementations

Creates a new LegacyImporterResult from a PathBuf.

Creates a new LegacyImporterResult from contents String.

Creates a new LegacyImporterResult from contents String and a PathBuf.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.