pub struct AnyAttribute<'xml> {
pub ns: Cow<'xml, str>,
pub name: Cow<'xml, str>,
pub value: Cow<'xml, str>,
}Expand description
An XML attribute with a resolved namespace URI.
Fields§
§ns: Cow<'xml, str>Namespace URI of this attribute (empty string for unprefixed attributes).
name: Cow<'xml, str>Local attribute name.
value: Cow<'xml, str>Attribute value.
Implementations§
Source§impl<'a> AnyAttribute<'a>
impl<'a> AnyAttribute<'a>
Sourcepub fn into_owned(self) -> AnyAttribute<'static>
pub fn into_owned(self) -> AnyAttribute<'static>
Converts this attribute into an owned version with 'static lifetime.
Trait Implementations§
Source§impl<'xml> Clone for AnyAttribute<'xml>
impl<'xml> Clone for AnyAttribute<'xml>
Source§fn clone(&self) -> AnyAttribute<'xml>
fn clone(&self) -> AnyAttribute<'xml>
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<'xml> Debug for AnyAttribute<'xml>
impl<'xml> Debug for AnyAttribute<'xml>
Source§impl<'xml> PartialEq for AnyAttribute<'xml>
impl<'xml> PartialEq for AnyAttribute<'xml>
impl<'xml> Eq for AnyAttribute<'xml>
impl<'xml> StructuralPartialEq for AnyAttribute<'xml>
Auto Trait Implementations§
impl<'xml> Freeze for AnyAttribute<'xml>
impl<'xml> RefUnwindSafe for AnyAttribute<'xml>
impl<'xml> Send for AnyAttribute<'xml>
impl<'xml> Sync for AnyAttribute<'xml>
impl<'xml> Unpin for AnyAttribute<'xml>
impl<'xml> UnsafeUnpin for AnyAttribute<'xml>
impl<'xml> UnwindSafe for AnyAttribute<'xml>
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