Struct sxd_document::dom::Attribute
[−]
[src]
pub struct Attribute<'d> { /* fields omitted */ }Metadata about the current element
Methods
impl<'d> Attribute<'d>[src]
impl<'d> Attribute<'d>[src]
fn name(&self) -> QName<'d>
fn value(&self) -> &'d str
fn preferred_prefix(&self) -> Option<&'d str>
fn set_preferred_prefix(&self, prefix: Option<&str>)
fn parent(&self) -> Option<Element<'d>>
Trait Implementations
impl<'d> Copy for Attribute<'d>[src]
impl<'d> Clone for Attribute<'d>[src]
fn clone(&self) -> Attribute<'d>
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<'d> PartialEq for Attribute<'d>[src]
fn eq(&self, other: &Attribute<'d>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl<'d> Eq for Attribute<'d>[src]
impl<'d> Hash for Attribute<'d>[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher,
H: Hasher,
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
H: Hasher,
Feeds a slice of this type into the state provided.