Struct libxml::tree::Namespace
[−]
[src]
pub struct Namespace { pub ns_ptr: *mut c_void, }
An xml namespace
Fields
ns_ptr: *mut c_void
libxml's xmlNsPtr
Methods
impl Namespace
[src]
fn new(prefix: &str, href: &str, node: &Node) -> Result<Self, ()>
Creates a new namespace
fn get_prefix(&self) -> String
The namespace prefix
fn get_href(&self) -> String
The namespace href
Trait Implementations
impl Clone for Namespace
[src]
fn clone(&self) -> Namespace
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 Drop for Namespace
[src]
fn drop(&mut self)
Free namespace