Struct libxml::xpath::Context [] [src]

pub struct Context<'a> {
    pub context_ptr: *mut c_void,
    pub document: &'a Document,
}

The xpath context

Fields

libxml's ContextPtr

Document contains pointer, needed for ContextPtr, so we need to borrow Document to prevent it's freeing

Methods

impl<'a> Context<'a>
[src]

create the xpath context for a document

Register a namespace prefix-href pair on the xpath context

evaluate an xpath

Trait Implementations

impl<'a> Clone for Context<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Drop for Context<'a>
[src]

free xpath context when it goes out of scope