[−][src]Struct roxmltree::ExpandedName
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]
fn clone(&self) -> ExpandedName<'input>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &ExpandedName<'input>) -> bool
[src]
fn ne(&self, other: &ExpandedName<'input>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,