pub enum AttributeSort {
None,
Canonical,
Alphabetical,
}Expand description
Attribute ordering mode.
§Examples
let mut options = svg_format::FormatOptions::default();
options.attribute_sort = svg_format::AttributeSort::Alphabetical;
let formatted = svg_format::format_with_options(r#"<svg y="2" x="1"/>"#, options);
assert!(formatted.contains(r#"x="1" y="2""#));Variants§
None
Keep original source order.
Canonical
SVG-aware canonical grouping/order.
Alphabetical
Sort attributes alphabetically by name.
Trait Implementations§
Source§impl Clone for AttributeSort
impl Clone for AttributeSort
Source§fn clone(&self) -> AttributeSort
fn clone(&self) -> AttributeSort
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AttributeSort
Source§impl Debug for AttributeSort
impl Debug for AttributeSort
Source§impl Default for AttributeSort
impl Default for AttributeSort
Source§fn default() -> AttributeSort
fn default() -> AttributeSort
Returns the “default value” for a type. Read more
impl Eq for AttributeSort
Source§impl PartialEq for AttributeSort
impl PartialEq for AttributeSort
impl StructuralPartialEq for AttributeSort
Source§impl ValueEnum for AttributeSort
impl ValueEnum for AttributeSort
Auto Trait Implementations§
impl Freeze for AttributeSort
impl RefUnwindSafe for AttributeSort
impl Send for AttributeSort
impl Sync for AttributeSort
impl Unpin for AttributeSort
impl UnsafeUnpin for AttributeSort
impl UnwindSafe for AttributeSort
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