pub struct CompileContext {
pub zoneinfo: PathBuf,
pub time_zone: ArcTz,
pub current_timestamp: NaiveDateTime,
pub variables: Box<[Value]>,
}
Expand description
Environment information shared by all compilations
Fields§
§zoneinfo: PathBuf
The zoneinfo directory where timezones can be read.
time_zone: ArcTz
The time zone used to interpret strings into timestamps.
current_timestamp: NaiveDateTime
The current timestamp in UTC.
variables: Box<[Value]>
The global variables.
Implementations§
Trait Implementations§
Source§impl Clone for CompileContext
impl Clone for CompileContext
Source§fn clone(&self) -> CompileContext
fn clone(&self) -> CompileContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CompileContext
impl RefUnwindSafe for CompileContext
impl Send for CompileContext
impl Sync for CompileContext
impl Unpin for CompileContext
impl UnwindSafe for CompileContext
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