pub struct LegacyOptionsBuilder { /* private fields */ }
Expand description
A builder for LegacyOptionsBuilder.
Implementations§
Source§impl LegacyOptionsBuilder
impl LegacyOptionsBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new LegacyOptionsBuilder.
Sourcepub fn build(self) -> LegacyOptions
pub fn build(self) -> LegacyOptions
Builds a LegacyOptions.
Sourcepub fn include_paths(self, arg: &[impl AsRef<Path>]) -> Self
pub fn include_paths(self, arg: &[impl AsRef<Path>]) -> Self
Sets the LegacyOptions’s [include_paths] field.
Sourcepub fn include_path(self, arg: impl AsRef<Path>) -> Self
pub fn include_path(self, arg: impl AsRef<Path>) -> Self
Adds a path to the LegacyOptions’s [include_paths] field.
Sourcepub fn indent_type(self, arg: impl Into<IndentType>) -> Self
pub fn indent_type(self, arg: impl Into<IndentType>) -> Self
Sets the LegacyOptions’s [indent_type] field.
Sourcepub fn indent_width(self, arg: impl Into<usize>) -> Self
pub fn indent_width(self, arg: impl Into<usize>) -> Self
Sets the LegacyOptions’s [indent_width] field.
Sourcepub fn linefeed(self, arg: impl Into<LineFeed>) -> Self
pub fn linefeed(self, arg: impl Into<LineFeed>) -> Self
Sets the LegacyOptions’s [linefeed] field.
Sourcepub fn output_style(self, arg: impl Into<OutputStyle>) -> Self
pub fn output_style(self, arg: impl Into<OutputStyle>) -> Self
Sets the LegacyOptions’s [output_style] field.
Sourcepub fn source_map(self, arg: impl Into<bool>) -> Self
pub fn source_map(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [source_map] field.
Sourcepub fn source_map_contents(self, arg: impl Into<bool>) -> Self
pub fn source_map_contents(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [source_map_contents] field.
Sourcepub fn sass_importers(
self,
arg: impl IntoIterator<Item = impl Into<BoxLegacyImporter>>,
) -> Self
pub fn sass_importers( self, arg: impl IntoIterator<Item = impl Into<BoxLegacyImporter>>, ) -> Self
Sets the LegacyOptions’s [sass_importers] field with [SassLegacyImporter]s.
Sourcepub fn sass_importer(self, arg: impl Into<BoxLegacyImporter>) -> Self
pub fn sass_importer(self, arg: impl Into<BoxLegacyImporter>) -> Self
Adds a [SassLegacyImporter] to the LegacyOptions’s [sass_importers] field.
Sourcepub fn importers(
self,
arg: impl IntoIterator<Item = impl Into<Box<dyn LegacyImporter>>>,
) -> Self
pub fn importers( self, arg: impl IntoIterator<Item = impl Into<Box<dyn LegacyImporter>>>, ) -> Self
Sets the LegacyOptions’s [sass_importers] field with LegacyImporters.
Sourcepub fn importer<I: 'static + LegacyImporter>(self, arg: I) -> Self
pub fn importer<I: 'static + LegacyImporter>(self, arg: I) -> Self
Adds a LegacyImporter to the LegacyOptions’s [sass_importers] field.
Sourcepub fn charset(self, arg: impl Into<bool>) -> Self
pub fn charset(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [charset] field.
Sourcepub fn quiet_deps(self, arg: impl Into<bool>) -> Self
pub fn quiet_deps(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [quiet_deps] field.
Sourcepub fn verbose(self, arg: impl Into<bool>) -> Self
pub fn verbose(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [verbose] field.
Sourcepub fn logger<L: 'static + Logger>(self, arg: L) -> Self
pub fn logger<L: 'static + Logger>(self, arg: L) -> Self
Sets the LegacyOptions’s [logger] field.
Sourcepub fn data(self, arg: impl Into<String>) -> Self
pub fn data(self, arg: impl Into<String>) -> Self
Sets the LegacyOptions’s [data] field.
Sourcepub fn indented_syntax(self, arg: impl Into<bool>) -> Self
pub fn indented_syntax(self, arg: impl Into<bool>) -> Self
Sets the LegacyOptions’s [indented_syntax] field.