Struct StringOptionsBuilder

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

A builder for StringOptions.

Implementations§

Source§

impl StringOptionsBuilder

Source

pub fn new() -> Self

Creates a new StringOptionsBuilder.

Source

pub fn build(self) -> StringOptions

Build the StringOptions.

Source

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

Sets the StringOptions’s [input_importer] field with a SassImporter.

Source

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

Sets the StringOptions’s [input_importer] field with a Importer.

Source

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

Sets the StringOptions’s [input_importer] field with a FileImporter.

Source

pub fn syntax(self, arg: impl Into<Syntax>) -> Self

Sets the StringOptions’s [syntax] field.

Source

pub fn url(self, arg: impl Into<Url>) -> Self

Sets the StringOptions’s url field.

Source

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

Sets the StringOptions’s [alert_ascii] field.

Source

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

Sets the StringOptions’s [alert_color] field.

Source

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

Sets the StringOptions’s [load_paths] field.

Source

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

Adds a Path to the StringOptions’s [load_paths] field.

Source

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

Sets the StringOptions’s [quiet_deps] field.

Source

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

Sets the StringOptions’s [source_map] field.

Source

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

Sets the StringOptions’s [source_map_include_sources] field.

Source

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

Sets the StringOptions’s [style] field.

Source

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

Sets the StringOptions’s [verbose] field.

Source

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

Sets the StringOptions’s [charset] field.

Source

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

Sets the StringOptions’s [logger] field.

Source

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

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

Source

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

Sets the StringOptions’s [importers] field with SassImporters.

Source

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

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

Source

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

Adds a FileImporter to the StringOptions’s [importers] field.

Trait Implementations§

Source§

impl Debug for StringOptionsBuilder

Source§

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

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

impl Default for StringOptionsBuilder

Source§

fn default() -> StringOptionsBuilder

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