Struct sass_embedded::OptionsBuilder
source · [−]pub struct OptionsBuilder { /* private fields */ }
Expand description
A builder for Options.
Implementations
sourceimpl OptionsBuilder
impl OptionsBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new OptionsBuilder.
sourcepub fn alert_ascii(self, arg: impl Into<bool>) -> Self
pub fn alert_ascii(self, arg: impl Into<bool>) -> Self
Sets the Options’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 Options’s [alert_color] field.
sourcepub fn load_paths(self, arg: &[impl AsRef<Path>]) -> Self
pub fn load_paths(self, arg: &[impl AsRef<Path>]) -> Self
Sets the Options’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 load_path to the Options’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 Options’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 Options’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 Options’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 Options’s [style] 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 Options’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 Options’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 Options’s [importers] field.
Trait Implementations
sourceimpl Debug for OptionsBuilder
impl Debug for OptionsBuilder
sourceimpl Default for OptionsBuilder
impl Default for OptionsBuilder
sourcefn default() -> OptionsBuilder
fn default() -> OptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl !UnwindSafe for OptionsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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