Struct rsass::output::Format[][src]

pub struct Format {
    pub style: Style,
    pub precision: usize,
}
Expand description

Specifies the format for outputing css.

The format is the style (expanded or compressed) and the precision for numeric values.

Fields

style: Style

The style of this format (expanded, compressed or introspection)

precision: usize

Number of decimals to use for numeric output.

Implementations

Create a format for introspection.

Return true if this is a compressed format.

Return true if this is an introspection format.

Write a slice of sass items in this format. The file_context is needed if there are @import statements in the sass file.

Get a newline followed by len spaces, unles self is compressed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.