Struct usvg::Options

source ·
pub struct Options {
    pub path: Option<PathBuf>,
    pub dpi: f64,
    pub font_family: String,
    pub font_size: f64,
    pub languages: Vec<String>,
    pub keep_named_groups: bool,
}
Expand description

Processing options.

Fields

path: Option<PathBuf>

SVG image path.

Used to resolve relative image paths.

dpi: f64

Target DPI.

Impact units conversion.

font_family: String

A default font family.

font_size: f64

A default font size.

languages: Vec<String>

A list of languages that will be used to resolve the systemLanguage conditional attribute.

Format: en, en-US.

keep_named_groups: bool

Keep named groups.

If set to true, all non-empty groups with id attribute will not be removed.

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.