pub struct DynamicContext<'h> { /* private fields */ }Expand description
The dynamic context shared by evaluations: the host, the Clock (implicit timezone
and current date and time) and a cache of compiled regular expressions.
Implementations§
Source§impl<'h> DynamicContext<'h>
impl<'h> DynamicContext<'h>
Sourcepub const fn implicit_timezone(&self) -> i16
pub const fn implicit_timezone(&self) -> i16
The implicit timezone in minutes.
Sourcepub const fn current_date_time(&self) -> DateTime
pub const fn current_date_time(&self) -> DateTime
The value of fn:current-dateTime().
Trait Implementations§
Auto Trait Implementations§
impl<'h> !Freeze for DynamicContext<'h>
impl<'h> !RefUnwindSafe for DynamicContext<'h>
impl<'h> !Send for DynamicContext<'h>
impl<'h> !Sync for DynamicContext<'h>
impl<'h> !UnwindSafe for DynamicContext<'h>
impl<'h> Forget for DynamicContext<'h>
impl<'h> Unpin for DynamicContext<'h>
impl<'h> UnsafeUnpin for DynamicContext<'h>
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