pub struct CompiledExpr { /* private fields */ }Expand description
An expression ready to be evaluated: functions and variables resolved against a static context. It holds no node and can be shared between threads.
Implementations§
Source§impl CompiledExpr
impl CompiledExpr
Sourcepub const fn is_at_most_one(&self) -> bool
pub const fn is_at_most_one(&self) -> bool
Whether the value is statically known to have at most one item.
Source§impl CompiledExpr
impl CompiledExpr
Sourcepub fn effective_boolean_value(
&self,
dc: &DynamicContext<'_>,
context: &Context,
) -> Result<bool>
pub fn effective_boolean_value( &self, dc: &DynamicContext<'_>, context: &Context, ) -> Result<bool>
Evaluates the effective boolean value of the expression, reading no more of the
sequence than needed (as xsl:if and xsl:when do).
§Errors
The dynamic error the evaluation raises.
Trait Implementations§
Source§impl Clone for CompiledExpr
impl Clone for CompiledExpr
Auto Trait Implementations§
impl Forget for CompiledExpr
impl Freeze for CompiledExpr
impl RefUnwindSafe for CompiledExpr
impl Send for CompiledExpr
impl Sync for CompiledExpr
impl Unpin for CompiledExpr
impl UnsafeUnpin for CompiledExpr
impl UnwindSafe for CompiledExpr
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