[][src]Struct sxd_document::dom::Attribute

pub struct Attribute<'d> { /* fields omitted */ }

Metadata about the current element

Methods

impl<'d> Attribute<'d>[src]

pub fn document(&self) -> Document<'d>[src]

impl<'d> Attribute<'d>[src]

pub fn name(&self) -> QName<'d>[src]

pub fn value(&self) -> &'d str[src]

pub fn preferred_prefix(&self) -> Option<&'d str>[src]

pub fn set_preferred_prefix(&self, prefix: Option<&str>)[src]

pub fn parent(&self) -> Option<Element<'d>>[src]

pub fn remove_from_parent(&self)[src]

Trait Implementations

impl<'d> Copy for Attribute<'d>[src]

impl<'d> Clone for Attribute<'d>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'d> PartialEq<Attribute<'d>> for Attribute<'d>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl<'d> Eq for Attribute<'d>[src]

impl<'d> Debug for Attribute<'d>[src]

impl<'d> Hash for Attribute<'d>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<'d> !Send for Attribute<'d>

impl<'d> !Sync for Attribute<'d>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]