Struct OptionsBuilder

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

A builder for Options.

Implementations§

Source§

impl OptionsBuilder

Source

pub fn new() -> Self

Creates a new OptionsBuilder.

Source

pub fn build(self) -> Options

Build the Options.

Source

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

Sets the Options’s [alert_ascii] field.

Source

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

Sets the Options’s [alert_color] field.

Source

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

Sets the Options’s [load_paths] field.

Source

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

Adds a load_path to the Options’s [load_paths] field.

Source

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

Sets the Options’s [quiet_deps] field.

Source

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

Sets the Options’s [source_map] field.

Source

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

Sets the Options’s [source_map_include_sources] field.

Source

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

Sets the Options’s [style] field.

Source

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

Sets the Options’s [verbose] field.

Source

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

Sets the Options’s [charset] field.

Source

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

Sets the Options’s [logger] field.

Source

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

Adds a SassImporter to the Options’s [importers] field.

Source

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

Sets the Options’s [importers] field.

Source

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

Adds a Importer to the Options’s [importers] field.

Source

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

Source§

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

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

impl Default for OptionsBuilder

Source§

fn default() -> OptionsBuilder

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,