Struct usvg::XmlOptions
source · pub struct XmlOptions {
pub id_prefix: Option<String>,
pub coordinates_precision: u8,
pub transforms_precision: u8,
pub writer_opts: Options,
}Expand description
XML writing options.
Fields§
§id_prefix: Option<String>Used to add a custom prefix to each element ID during writing.
coordinates_precision: u8Set the coordinates numeric precision.
Smaller precision can lead to a malformed output in some cases.
Default: 8
transforms_precision: u8Set the transform values numeric precision.
Smaller precision can lead to a malformed output in some cases.
Default: 8
writer_opts: Optionsxmlwriter options.
Trait Implementations§
source§impl Clone for XmlOptions
impl Clone for XmlOptions
source§fn clone(&self) -> XmlOptions
fn clone(&self) -> XmlOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for XmlOptions
impl Debug for XmlOptions
Auto Trait Implementations§
impl RefUnwindSafe for XmlOptions
impl Send for XmlOptions
impl Sync for XmlOptions
impl Unpin for XmlOptions
impl UnwindSafe for XmlOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more