pub struct PositionedAttr {
pub position: usize,
pub name: String,
pub value: String,
}Expand description
An XML attribute with its original position for correct round-trip ordering.
When unknown attributes are captured during parsing, we store their position among sibling attributes so they can be serialized in the original order.
Fields§
§position: usizeOriginal position among sibling attributes (0-indexed).
name: StringThe attribute name (including namespace prefix if present).
value: StringThe attribute value.
Implementations§
Trait Implementations§
Source§impl Clone for PositionedAttr
impl Clone for PositionedAttr
Source§fn clone(&self) -> PositionedAttr
fn clone(&self) -> PositionedAttr
Returns a duplicate 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 PositionedAttr
impl Debug for PositionedAttr
Source§impl PartialEq for PositionedAttr
impl PartialEq for PositionedAttr
impl StructuralPartialEq for PositionedAttr
Auto Trait Implementations§
impl Freeze for PositionedAttr
impl RefUnwindSafe for PositionedAttr
impl Send for PositionedAttr
impl Sync for PositionedAttr
impl Unpin for PositionedAttr
impl UnsafeUnpin for PositionedAttr
impl UnwindSafe for PositionedAttr
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