pub struct OptionsRef<'a> {
    pub resources_dir: Option<&'a Path>,
    pub dpi: f64,
    pub font_family: &'a str,
    pub font_size: f64,
    pub languages: &'a [String],
    pub shape_rendering: ShapeRendering,
    pub text_rendering: TextRendering,
    pub image_rendering: ImageRendering,
    pub keep_named_groups: bool,
    pub default_size: Size,
    pub fontdb: &'a Database,
    pub image_href_resolver: &'a ImageHrefResolver,
}
Expand description

A reference to processing options.

See Options for details.

Fields

resources_dir: Option<&'a Path>dpi: f64font_family: &'a strfont_size: f64languages: &'a [String]shape_rendering: ShapeRenderingtext_rendering: TextRenderingimage_rendering: ImageRenderingkeep_named_groups: booldefault_size: Sizefontdb: &'a Databaseimage_href_resolver: &'a ImageHrefResolver

Implementations

Converts a relative path into absolute relative to the SVG file itself.

If OptionsRef::resources_dir is not set, returns itself.

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

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.