Struct LegacyOptionsBuilder

Source
pub struct LegacyOptionsBuilder { /* private fields */ }
Expand description

A builder for LegacyOptionsBuilder.

Implementations§

Source§

impl LegacyOptionsBuilder

Source

pub fn new() -> Self

Creates a new LegacyOptionsBuilder.

Source

pub fn build(self) -> LegacyOptions

Builds a LegacyOptions.

Source

pub fn include_paths(self, arg: &[impl AsRef<Path>]) -> Self

Sets the LegacyOptions’s [include_paths] field.

Source

pub fn include_path(self, arg: impl AsRef<Path>) -> Self

Adds a path to the LegacyOptions’s [include_paths] field.

Source

pub fn indent_type(self, arg: impl Into<IndentType>) -> Self

Sets the LegacyOptions’s [indent_type] field.

Source

pub fn indent_width(self, arg: impl Into<usize>) -> Self

Sets the LegacyOptions’s [indent_width] field.

Source

pub fn linefeed(self, arg: impl Into<LineFeed>) -> Self

Sets the LegacyOptions’s [linefeed] field.

Source

pub fn output_style(self, arg: impl Into<OutputStyle>) -> Self

Sets the LegacyOptions’s [output_style] field.

Source

pub fn source_map(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [source_map] field.

Source

pub fn source_map_contents(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [source_map_contents] field.

Source

pub fn sass_importers( self, arg: impl IntoIterator<Item = impl Into<BoxLegacyImporter>>, ) -> Self

Sets the LegacyOptions’s [sass_importers] field with [SassLegacyImporter]s.

Source

pub fn sass_importer(self, arg: impl Into<BoxLegacyImporter>) -> Self

Adds a [SassLegacyImporter] to the LegacyOptions’s [sass_importers] field.

Source

pub fn importers( self, arg: impl IntoIterator<Item = impl Into<Box<dyn LegacyImporter>>>, ) -> Self

Sets the LegacyOptions’s [sass_importers] field with LegacyImporters.

Source

pub fn importer<I: 'static + LegacyImporter>(self, arg: I) -> Self

Adds a LegacyImporter to the LegacyOptions’s [sass_importers] field.

Source

pub fn charset(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [charset] field.

Source

pub fn quiet_deps(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [quiet_deps] field.

Source

pub fn verbose(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [verbose] field.

Source

pub fn logger<L: 'static + Logger>(self, arg: L) -> Self

Sets the LegacyOptions’s [logger] field.

Source

pub fn file(self, arg: impl AsRef<Path>) -> Self

Sets the LegacyOptions’s file field.

Source

pub fn data(self, arg: impl Into<String>) -> Self

Sets the LegacyOptions’s [data] field.

Source

pub fn indented_syntax(self, arg: impl Into<bool>) -> Self

Sets the LegacyOptions’s [indented_syntax] field.

Trait Implementations§

Source§

impl Debug for LegacyOptionsBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LegacyOptionsBuilder

Source§

fn default() -> LegacyOptionsBuilder

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T