pub struct Object {
pub ptr: xmlXPathObjectPtr,
/* private fields */
}Expand description
Essentially, the result of the evaluation of some xpath expression
Fields§
§ptr: xmlXPathObjectPtrlibxml’s ObjectPtr
Implementations§
Source§impl Object
impl Object
Sourcepub fn get_number_of_nodes(&self) -> usize
pub fn get_number_of_nodes(&self) -> usize
get the number of nodes in the result set
Sourcepub fn get_nodes_as_vec(&self) -> Vec<Node>
pub fn get_nodes_as_vec(&self) -> Vec<Node>
returns the result set as a vector of Node objects
Sourcepub fn get_readonly_nodes_as_vec(&self) -> Vec<RoNode>
pub fn get_readonly_nodes_as_vec(&self) -> Vec<RoNode>
returns the result set as a vector of RoNode objects
Sourcepub fn get_nodes_as_str(&self) -> Vec<String>
pub fn get_nodes_as_str(&self) -> Vec<String>
returns the result set as a vector of Strings
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more