pub struct StringOptionsBuilder { /* private fields */ }
Expand description
A builder for StringOptions.
Implementations§
Source§impl StringOptionsBuilder
impl StringOptionsBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new StringOptionsBuilder.
Sourcepub fn build(self) -> StringOptions
pub fn build(self) -> StringOptions
Build the StringOptions.
Sourcepub fn input_sass_importer(self, arg: impl Into<SassImporter>) -> Self
pub fn input_sass_importer(self, arg: impl Into<SassImporter>) -> Self
Sets the StringOptions’s [input_importer] field with a SassImporter.
Sourcepub fn input_importer<I: 'static + Importer>(self, arg: I) -> Self
pub fn input_importer<I: 'static + Importer>(self, arg: I) -> Self
Sets the StringOptions’s [input_importer] field with a Importer.
Sourcepub fn input_file_importer<I: 'static + FileImporter>(self, arg: I) -> Self
pub fn input_file_importer<I: 'static + FileImporter>(self, arg: I) -> Self
Sets the StringOptions’s [input_importer] field with a FileImporter.
Sourcepub fn syntax(self, arg: impl Into<Syntax>) -> Self
pub fn syntax(self, arg: impl Into<Syntax>) -> Self
Sets the StringOptions’s [syntax] field.
Sourcepub fn alert_ascii(self, arg: impl Into<bool>) -> Self
pub fn alert_ascii(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [alert_ascii] field.
Sourcepub fn alert_color(self, arg: impl Into<bool>) -> Self
pub fn alert_color(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [alert_color] field.
Sourcepub fn load_paths<P: AsRef<Path>>(self, arg: impl AsRef<[P]>) -> Self
pub fn load_paths<P: AsRef<Path>>(self, arg: impl AsRef<[P]>) -> Self
Sets the StringOptions’s [load_paths] field.
Sourcepub fn load_path(self, arg: impl AsRef<Path>) -> Self
pub fn load_path(self, arg: impl AsRef<Path>) -> Self
Adds a Path to the StringOptions’s [load_paths] field.
Sourcepub fn quiet_deps(self, arg: impl Into<bool>) -> Self
pub fn quiet_deps(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [quiet_deps] field.
Sourcepub fn source_map(self, arg: impl Into<bool>) -> Self
pub fn source_map(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [source_map] field.
Sourcepub fn source_map_include_sources(self, arg: impl Into<bool>) -> Self
pub fn source_map_include_sources(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [source_map_include_sources] field.
Sourcepub fn style(self, arg: impl Into<OutputStyle>) -> Self
pub fn style(self, arg: impl Into<OutputStyle>) -> Self
Sets the StringOptions’s [style] field.
Sourcepub fn verbose(self, arg: impl Into<bool>) -> Self
pub fn verbose(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [verbose] field.
Sourcepub fn charset(self, arg: impl Into<bool>) -> Self
pub fn charset(self, arg: impl Into<bool>) -> Self
Sets the StringOptions’s [charset] field.
Sourcepub fn logger<L: 'static + Logger>(self, arg: L) -> Self
pub fn logger<L: 'static + Logger>(self, arg: L) -> Self
Sets the StringOptions’s [logger] field.
Sourcepub fn sass_importer(self, arg: impl Into<SassImporter>) -> Self
pub fn sass_importer(self, arg: impl Into<SassImporter>) -> Self
Adds a SassImporter to the StringOptions’s [importers] field.
Sourcepub fn sass_importers(
self,
arg: impl IntoIterator<Item = impl Into<SassImporter>>,
) -> Self
pub fn sass_importers( self, arg: impl IntoIterator<Item = impl Into<SassImporter>>, ) -> Self
Sets the StringOptions’s [importers] field with SassImporters.
Sourcepub fn importer<I: 'static + Importer>(self, arg: I) -> Self
pub fn importer<I: 'static + Importer>(self, arg: I) -> Self
Adds a Importer to the StringOptions’s [importers] field.
Sourcepub fn file_importer<I: 'static + FileImporter>(self, arg: I) -> Self
pub fn file_importer<I: 'static + FileImporter>(self, arg: I) -> Self
Adds a FileImporter to the StringOptions’s [importers] field.