Struct sass_embedded::legacy::LegacyOptionsBuilder
source · [−]pub struct LegacyOptionsBuilder { /* private fields */ }Expand description
A builder for LegacyOptionsBuilder.
Implementations
sourceimpl 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<BoxedLegacyImporter>>
) -> Self
pub fn sass_importers(
self,
arg: impl IntoIterator<Item = impl Into<BoxedLegacyImporter>>
) -> Self
Sets the LegacyOptions’s [sass_importers] field with [SassLegacyImporter]s.
sourcepub fn sass_importer(self, arg: impl Into<BoxedLegacyImporter>) -> Self
pub fn sass_importer(self, arg: impl Into<BoxedLegacyImporter>) -> 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.
Trait Implementations
sourceimpl Debug for LegacyOptionsBuilder
impl Debug for LegacyOptionsBuilder
sourceimpl Default for LegacyOptionsBuilder
impl Default for LegacyOptionsBuilder
sourcefn default() -> LegacyOptionsBuilder
fn default() -> LegacyOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LegacyOptionsBuilder
impl Send for LegacyOptionsBuilder
impl Sync for LegacyOptionsBuilder
impl Unpin for LegacyOptionsBuilder
impl !UnwindSafe for LegacyOptionsBuilder
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