Struct svgdom::WriteOptions[][src]

pub struct WriteOptions {
    pub use_single_quote: bool,
    pub indent: Indent,
    pub attributes_indent: Indent,
    pub attributes_order: AttributesOrder,
    pub values: ValueWriteOptions,
}

Options that defines SVG writing.

Fields

Use single quote marks instead of double quote.

Examples

Before:

<rect fill="red"/>

After:

<rect fill='red'/>

Default: disabled

Set XML nodes indention.

Examples

Indent::None

Before:

<svg>
    <rect fill="red"/>
</svg>

After:

<svg><rect fill="red"/></svg>

Default: 4 spaces

Set XML attributes indention.

Examples

Indent::Spaces(2)

Before:

<svg>
    <rect fill="red" stroke="black"/>
</svg>

After:

<svg>
    <rect
      fill="red"
      stroke="black"/>
</svg>

Default: None

Set attributes order.

Default: AttributesOrder::Alphabetical

svgtypes options.

Trait Implementations

impl Debug for WriteOptions
[src]

Formats the value using the given formatter. Read more

impl Default for WriteOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations