pub struct NoHost;Expand description
A host for plain XPath: no variables, functions or documents.
Trait Implementations§
impl Copy for NoHost
Source§impl Host for NoHost
impl Host for NoHost
Source§fn call_function(
&self,
id: FunctionId,
_args: Vec<Argument>,
_dc: &DynamicContext<'_>,
) -> Result<Vec<Item>>
fn call_function( &self, id: FunctionId, _args: Vec<Argument>, _dc: &DynamicContext<'_>, ) -> Result<Vec<Item>>
Calls a host function, from an evaluation in the dynamic context
dc. Its
arguments are evaluated or not yet: the host computes each one when it needs it
(Argument::evaluate, with dc), as Saxon evaluates the arguments of a
stylesheet function lazily. Read moreSource§fn document(&self, uri: &str, _base: Option<&str>) -> Result<Node>
fn document(&self, uri: &str, _base: Option<&str>) -> Result<Node>
document(): the document node of the resource at uri, resolved against base
(the base URI of the node the URI came from, None for the static base URI). The
same URI must give the same document node, parsed with
Document::parse_loaded
so that fn:document-uri gives its absolute URI, as in Saxon. Read moreSource§fn system_property(&self, _name: &QName) -> String
fn system_property(&self, _name: &QName) -> String
system-property(): the value of the property (the empty string for an unknown
one).Auto Trait Implementations§
impl Forget for NoHost
impl Freeze for NoHost
impl RefUnwindSafe for NoHost
impl Send for NoHost
impl Sync for NoHost
impl Unpin for NoHost
impl UnsafeUnpin for NoHost
impl UnwindSafe for NoHost
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