Struct xml::attribute::Attribute
[−]
[src]
pub struct Attribute<'a> { pub name: Name<'a>, pub value: &'a str, }
A borrowed version of an XML attribute.
Consists of a borrowed qualified name and a borrowed string value.
Fields
name: Name<'a>
Attribute name.
value: &'a str
Attribute value.
Methods
impl<'a> Attribute<'a>
[src]
fn to_owned(&self) -> OwnedAttribute
Creates an owned attribute out of this borrowed one.
fn new(name: Name<'a>, value: &'a str) -> Attribute<'a>
Creates a borrowed attribute using the provided borrowed name and a borrowed string value.
Trait Implementations
impl<'a> Copy for Attribute<'a>
[src]
impl<'a> Clone for Attribute<'a>
[src]
fn clone(&self) -> Attribute<'a>
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<'a> Eq for Attribute<'a>
[src]
impl<'a> PartialEq for Attribute<'a>
[src]
fn eq(&self, __arg_0: &Attribute<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Attribute<'a>) -> bool
This method tests for !=
.
impl<'a> Hash for Attribute<'a>
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.