Struct xml::attribute::OwnedAttribute
source · pub struct OwnedAttribute {
pub name: OwnedName,
pub value: String,
}
Expand description
An owned version of an XML attribute.
Consists of an owned qualified name and an owned string value.
Fields§
§name: OwnedName
Attribute name.
value: String
Attribute value.
Implementations§
Trait Implementations§
source§impl Clone for OwnedAttribute
impl Clone for OwnedAttribute
source§fn clone(&self) -> OwnedAttribute
fn clone(&self) -> OwnedAttribute
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 OwnedAttribute
impl Debug for OwnedAttribute
source§impl Display for OwnedAttribute
impl Display for OwnedAttribute
source§impl Hash for OwnedAttribute
impl Hash for OwnedAttribute
source§impl PartialEq<OwnedAttribute> for OwnedAttribute
impl PartialEq<OwnedAttribute> for OwnedAttribute
source§fn eq(&self, other: &OwnedAttribute) -> bool
fn eq(&self, other: &OwnedAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OwnedAttribute
impl StructuralEq for OwnedAttribute
impl StructuralPartialEq for OwnedAttribute
Auto Trait Implementations§
impl RefUnwindSafe for OwnedAttribute
impl Send for OwnedAttribute
impl Sync for OwnedAttribute
impl Unpin for OwnedAttribute
impl UnwindSafe for OwnedAttribute
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