Struct libxml::tree::namespace::Namespace[][src]

pub struct Namespace { /* fields omitted */ }

An xml namespace

Implementations

impl Namespace[src]

pub fn new(
    prefix: &str,
    href: &str,
    node: &mut Node
) -> Result<Self, Box<dyn Error>>
[src]

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

impl Clone for Namespace[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.