Trait xml::namespace::NamespaceIterable
[−]
[src]
pub trait NamespaceIterable<'a> { type Iter: Iterator<Item=UriMapping<'a>>; fn uri_mappings(&'a self) -> Self::Iter; }
Denotes something which contains namespace URI mappings.
A URI mapping is a pair of type (Option<&str>, &str)
, where the first item
is a namespace prefix (None
meaning default prefix) and the second item
is a URI mapped to this prefix.
Associated Types
type Iter: Iterator<Item=UriMapping<'a>>
Required Methods
fn uri_mappings(&'a self) -> Self::Iter
Implementors
impl<'a> NamespaceIterable<'a> for Namespace
impl<'a> NamespaceIterable<'a> for NamespaceStack