pub struct XPathExpression { /* private fields */ }Expand description
An XPath 1.0 expression and the namespace bindings in scope where it was declared.
Implementations§
Source§impl XPathExpression
impl XPathExpression
Sourcepub fn new(expression: impl Into<String>) -> Self
pub fn new(expression: impl Into<String>) -> Self
Create an expression for signature-template generation.
Sourcepub fn with_namespace(
self,
prefix: impl Into<String>,
uri: impl Into<String>,
) -> Self
pub fn with_namespace( self, prefix: impl Into<String>, uri: impl Into<String>, ) -> Self
Bind a prefix used by this XPath expression.
Sourcepub fn expression(&self) -> &str
pub fn expression(&self) -> &str
XPath source text.
Sourcepub fn namespaces(&self) -> &BTreeMap<String, String>
pub fn namespaces(&self) -> &BTreeMap<String, String>
Namespace prefix bindings used during evaluation.
Trait Implementations§
Source§impl Clone for XPathExpression
impl Clone for XPathExpression
Source§fn clone(&self) -> XPathExpression
fn clone(&self) -> XPathExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XPathExpression
impl Debug for XPathExpression
impl Eq for XPathExpression
Source§impl PartialEq for XPathExpression
impl PartialEq for XPathExpression
impl StructuralPartialEq for XPathExpression
Auto Trait Implementations§
impl Freeze for XPathExpression
impl RefUnwindSafe for XPathExpression
impl Send for XPathExpression
impl Sync for XPathExpression
impl Unpin for XPathExpression
impl UnsafeUnpin for XPathExpression
impl UnwindSafe for XPathExpression
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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