pub struct Runnable<'a> { /* private fields */ }Implementations§
Source§impl<'a> Runnable<'a>
impl<'a> Runnable<'a>
Sourcepub fn many(&self, xot: &'a mut Xot) -> SpannedResult<Sequence>
pub fn many(&self, xot: &'a mut Xot) -> SpannedResult<Sequence>
Run the program against a sequence item.
Sourcepub fn one(&self, xot: &'a mut Xot) -> SpannedResult<Item>
pub fn one(&self, xot: &'a mut Xot) -> SpannedResult<Item>
Run the program, expect a single item as the result.
Sourcepub fn option(&self, xot: &'a mut Xot) -> SpannedResult<Option<Item>>
pub fn option(&self, xot: &'a mut Xot) -> SpannedResult<Option<Item>>
Run the program, expect an optional single item as the result.
pub fn dynamic_context(&self) -> &'a DynamicContext<'_>
pub fn documents(&self) -> DocumentsRef
pub fn static_context(&self) -> &StaticContext
pub fn default_collation_uri(&self) -> &IriReferenceStr
pub fn default_collation(&self) -> Result<Rc<Collation>>
pub fn implicit_timezone(&self) -> FixedOffset
pub fn function_info<'b>(&self, function: &'b Function) -> FunctionInfo<'a, 'b>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Runnable<'a>
impl<'a> !RefUnwindSafe for Runnable<'a>
impl<'a> !Send for Runnable<'a>
impl<'a> !Sync for Runnable<'a>
impl<'a> Unpin for Runnable<'a>
impl<'a> !UnwindSafe for Runnable<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more