[−][src]Struct libxml::tree::namespace::Namespace
An xml namespace
Methods
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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,