Struct svgdom::WriteOptions
source · pub struct WriteOptions {
pub use_single_quote: bool,
pub indent: Indent,
pub attributes_indent: Indent,
pub attributes_order: AttributesOrder,
pub values: ValueWriteOptions,
}
Expand description
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
sourceimpl Debug for WriteOptions
impl Debug for WriteOptions
Auto Trait Implementations
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more