[][src]Struct roxmltree::ExpandedName

pub struct ExpandedName<'input> { /* fields omitted */ }

An expanded name.

Contains an namespace URI and name pair.

Methods

impl<'input> ExpandedName<'input>[src]

pub fn namespace(&self) -> Option<&'input str>[src]

Returns a namespace URI.

Examples

let doc = roxmltree::Document::parse("<e xmlns='http://www.w3.org'/>").unwrap();

assert_eq!(doc.root_element().tag_name().namespace(), Some("http://www.w3.org"));

pub fn name(&self) -> &'input str[src]

Returns a local name.

Examples

let doc = roxmltree::Document::parse("<e/>").unwrap();

assert_eq!(doc.root_element().tag_name().name(), "e");

Trait Implementations

impl<'input> Clone for ExpandedName<'input>[src]

impl<'input> Copy for ExpandedName<'input>[src]

impl<'input> Debug for ExpandedName<'input>[src]

impl<'input> From<&'input str> for ExpandedName<'input>[src]

impl<'input> From<(&'input str, &'input str)> for ExpandedName<'input>[src]

impl<'input> PartialEq<ExpandedName<'input>> for ExpandedName<'input>[src]

impl<'input> StructuralPartialEq for ExpandedName<'input>[src]

Auto Trait Implementations

impl<'input> RefUnwindSafe for ExpandedName<'input>

impl<'input> Send for ExpandedName<'input>

impl<'input> Sync for ExpandedName<'input>

impl<'input> Unpin for ExpandedName<'input>

impl<'input> UnwindSafe for ExpandedName<'input>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.