Struct libxml::tree::namespace::Namespace [−][src]
An xml namespace
Implementations
impl Namespace
[src][−]
pub fn new(
prefix: &str,
href: &str,
node: &mut Node
) -> Result<Self, Box<dyn Error>>
[src][−]
prefix: &str,
href: &str,
node: &mut Node
) -> Result<Self, Box<dyn Error>>
Creates a new namespace
pub fn ns_ptr(&self) -> xmlNsPtr
[src][−]
Immutably borrows the underlying libxml2 xmlNsPtr
pointer
pub fn ns_ptr_mut(&mut self) -> xmlNsPtr
[src][−]
Mutably borrows the underlying libxml2 xmlNsPtr
pointer
pub fn get_prefix(&self) -> String
[src][−]
The namespace prefix
pub fn get_href(&self) -> String
[src][−]
The namespace href
pub fn free(&mut self)
[src][−]
Explicit free method, until (if?) we implement automatic+safe free-on-drop
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Namespace
impl !Send for Namespace
impl !Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,