Struct xml::attribute::OwnedAttribute
[−]
[src]
pub struct OwnedAttribute { pub name: OwnedName, pub value: String, }
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.
Methods
impl OwnedAttribute
[src]
fn borrow(&self) -> Attribute
Returns a borrowed Attribute
out of this owned one.
fn new<S: Into<String>>(name: OwnedName, value: S) -> OwnedAttribute
Creates a new owned attribute using the provided owned name and an owned string value.
Trait Implementations
impl Clone for OwnedAttribute
[src]
fn clone(&self) -> OwnedAttribute
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for OwnedAttribute
[src]
impl PartialEq for OwnedAttribute
[src]
fn eq(&self, __arg_0: &OwnedAttribute) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OwnedAttribute) -> bool
This method tests for !=
.
impl Hash for OwnedAttribute
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more