Enum svgdom::AttributesOrder
source · pub enum AttributesOrder {
AsIs,
Alphabetical,
Specification,
}
Expand description
An attributes order.
Note: the id
attribute is always first.
Variants
AsIs
Attributes are stored in the Vec
and with this option,
they will be written in the same order an in the Vec
.
Alphabetical
Write attributes in the alphabetical order.
Only SVG attributes will be sorted. Non-SVG attributes will be written as-is.
Specification
Write attributes in the same order as they listed in the SVG spec.
The current set of rules is pretty limited and doesn’t follow the spec strictly.
Only SVG attributes will be sorted. Non-SVG attributes will be written as-is.
Trait Implementations
sourceimpl Clone for AttributesOrder
impl Clone for AttributesOrder
sourcefn clone(&self) -> AttributesOrder
fn clone(&self) -> AttributesOrder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttributesOrder
impl Debug for AttributesOrder
sourceimpl PartialEq<AttributesOrder> for AttributesOrder
impl PartialEq<AttributesOrder> for AttributesOrder
sourcefn eq(&self, other: &AttributesOrder) -> bool
fn eq(&self, other: &AttributesOrder) -> bool
impl Copy for AttributesOrder
impl StructuralPartialEq for AttributesOrder
Auto Trait Implementations
impl RefUnwindSafe for AttributesOrder
impl Send for AttributesOrder
impl Sync for AttributesOrder
impl Unpin for AttributesOrder
impl UnwindSafe for AttributesOrder
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