pub struct DynamicContext<'a> { /* private fields */ }
Implementations§
Source§impl<'a> DynamicContext<'a>
impl<'a> DynamicContext<'a>
Sourcepub fn static_context(&self) -> &StaticContext
pub fn static_context(&self) -> &StaticContext
The static context of the program.
Sourcepub fn context_item(&self) -> Option<&Item>
pub fn context_item(&self) -> Option<&Item>
Access the context item, if any.
Sourcepub fn documents(&self) -> DocumentsRef
pub fn documents(&self) -> DocumentsRef
The documents in this context.
Sourcepub fn default_collection(&self) -> Option<&Sequence>
pub fn default_collection(&self) -> Option<&Sequence>
Access the default collection
Sourcepub fn default_uri_collection(&self) -> Option<&Sequence>
pub fn default_uri_collection(&self) -> Option<&Sequence>
Access the default URI collection
Sourcepub fn uri_collection(&self, uri: &RiStr<IriSpec>) -> Option<&Sequence>
pub fn uri_collection(&self, uri: &RiStr<IriSpec>) -> Option<&Sequence>
Access a URI collection by URI
Note that the URI does not have to be a proper URI as the specification defines it as an xs:string
Sourcepub fn environment_variable(&self, name: &str) -> Option<&str>
pub fn environment_variable(&self, name: &str) -> Option<&str>
Access an environment variable by name
Sourcepub fn environment_variable_names(&self) -> impl Iterator<Item = &str>
pub fn environment_variable_names(&self) -> impl Iterator<Item = &str>
Access all environment variable names
pub fn implicit_timezone(&self) -> FixedOffset
Sourcepub fn function_info<'b>(&self, function: &'b Function) -> FunctionInfo<'a, 'b>
pub fn function_info<'b>(&self, function: &'b Function) -> FunctionInfo<'a, 'b>
Access information about a Function.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DynamicContext<'a>
impl<'a> !RefUnwindSafe for DynamicContext<'a>
impl<'a> !Send for DynamicContext<'a>
impl<'a> !Sync for DynamicContext<'a>
impl<'a> Unpin for DynamicContext<'a>
impl<'a> !UnwindSafe for DynamicContext<'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