Struct dbgen::eval::CompileContext[][src]

pub struct CompileContext {
    pub zoneinfo: PathBuf,
    pub time_zone: ArcTz,
    pub current_timestamp: NaiveDateTime,
    pub variables: Box<[Value]>,
}

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

impl CompileContext[src]

pub fn new(variables_count: usize) -> Self[src]

Creates a default compile context storing the given number of variables.

pub fn parse_time_zone(&self, tz: &str) -> Result<ArcTz, Error>[src]

Parses the time zone name into a time zone object.

impl CompileContext[src]

pub fn compile_table(&self, table: Table) -> Result<Table, S<Error>>[src]

Compiles a table.

impl CompileContext[src]

pub fn compile_row(&self, exprs: Vec<S<Expr>>) -> Result<Row, S<Error>>[src]

Compiles a vector of parsed expressions into a row.

impl CompileContext[src]

pub fn compile(&self, expr: S<Expr>) -> Result<Compiled, S<Error>>[src]

Compiles an expression.

Trait Implementations

impl Clone for CompileContext[src]

impl Debug for CompileContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> SpanExt for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,