Struct sass_embedded::StringOptionsBuilder
source · [−]pub struct StringOptionsBuilder { /* private fields */ }
Expand description
A builder for StringOptions.
Implementations
sourceimpl 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.
Trait Implementations
sourceimpl Debug for StringOptionsBuilder
impl Debug for StringOptionsBuilder
sourceimpl Default for StringOptionsBuilder
impl Default for StringOptionsBuilder
sourcefn default() -> StringOptionsBuilder
fn default() -> StringOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for StringOptionsBuilder
impl Send for StringOptionsBuilder
impl Sync for StringOptionsBuilder
impl Unpin for StringOptionsBuilder
impl !UnwindSafe for StringOptionsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more