pub struct Argument(/* private fields */);Expand description
One evaluation: the dynamic context and the current item.
An argument of a call to a host function (Host::call_function):
its value, or, for an argument Saxon evaluates lazily, what computes it when the host
asks for it (Argument::evaluate), any number of times later during the call.
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn site(&self) -> Option<usize>
pub fn site(&self) -> Option<usize>
The call site of a lazy argument: the same number for every evaluation of this
argument of this call in the compiled expression, which stays valid as long as the
expression lives (the host may keep state per call site, as Saxon’s
LearningEvaluator). None for an argument evaluated before the call (one that
depends on the current item or on the position or size of the focus, or calls a
host function).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Argument
impl !Send for Argument
impl !Sync for Argument
impl !UnwindSafe for Argument
impl Forget for Argument
impl Freeze for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
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