[−][src]Struct svgdom::WriteOptions
Options that defines SVG writing.
Fields
use_single_quote: bool
Use single quote marks instead of double quote.
Examples
Before:
<rect fill="red"/>
After:
<rect fill='red'/>
Default: disabled
indent: Indent
Set XML nodes indention.
Examples
Indent::None
Before:
<svg>
<rect fill="red"/>
</svg>
After:
<svg><rect fill="red"/></svg>
Default: 4 spaces
attributes_indent: Indent
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
attributes_order: AttributesOrder
Set attributes order.
Default: AttributesOrder::Alphabetical
values: ValueWriteOptions
svgtypes
options.
Trait Implementations
impl Default for WriteOptions
[src]
impl Debug for WriteOptions
[src]
Auto Trait Implementations
impl Send for WriteOptions
impl Sync for WriteOptions
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,