pub struct OptionsBuilder { /* private fields */ }
Expand description
A builder for Options.
Implementations§
Source§impl 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<P: AsRef<Path>>(self, arg: impl AsRef<[P]>) -> Self
pub fn load_paths<P: AsRef<Path>>(self, arg: impl AsRef<[P]>) -> 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§
Source§impl Debug for OptionsBuilder
impl Debug for OptionsBuilder
Source§impl Default for OptionsBuilder
impl Default for OptionsBuilder
Source§fn default() -> OptionsBuilder
fn default() -> OptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OptionsBuilder
impl !RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl !UnwindSafe for OptionsBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more