TypedExprKind

Enum TypedExprKind 

Source
pub enum TypedExprKind {
    Literal(Literal),
    ColumnRef {
        table: String,
        column: String,
        column_index: usize,
    },
    BinaryOp {
        left: Box<TypedExpr>,
        op: BinaryOp,
        right: Box<TypedExpr>,
    },
    UnaryOp {
        op: UnaryOp,
        operand: Box<TypedExpr>,
    },
    FunctionCall {
        name: String,
        args: Vec<TypedExpr>,
    },
    Cast {
        expr: Box<TypedExpr>,
        target_type: ResolvedType,
    },
    Between {
        expr: Box<TypedExpr>,
        low: Box<TypedExpr>,
        high: Box<TypedExpr>,
        negated: bool,
    },
    Like {
        expr: Box<TypedExpr>,
        pattern: Box<TypedExpr>,
        escape: Option<Box<TypedExpr>>,
        negated: bool,
    },
    InList {
        expr: Box<TypedExpr>,
        list: Vec<TypedExpr>,
        negated: bool,
    },
    IsNull {
        expr: Box<TypedExpr>,
        negated: bool,
    },
    VectorLiteral(Vec<f64>),
}
Expand description

The kind of a typed expression.

Each variant corresponds to a different expression type that has been type-checked. Unlike ExprKind, column references include the resolved column index for efficient access.

Variants§

§

Literal(Literal)

A literal value.

§

ColumnRef

A column reference with resolved table and column index.

Fields

§table: String

The table name (resolved, never None after name resolution).

§column: String

The column name.

§column_index: usize

The column index in the table’s column list (0-based). This allows efficient column access during execution.

§

BinaryOp

A binary operation.

Fields

§left: Box<TypedExpr>

Left operand.

§op: BinaryOp

The operator.

§right: Box<TypedExpr>

Right operand.

§

UnaryOp

A unary operation.

Fields

§op: UnaryOp

The operator.

§operand: Box<TypedExpr>

The operand.

§

FunctionCall

A function call.

Fields

§name: String

Function name.

§args: Vec<TypedExpr>

Function arguments.

§

Cast

An explicit type cast.

Fields

§expr: Box<TypedExpr>

Expression to cast.

§target_type: ResolvedType

Target type.

§

Between

A BETWEEN expression.

Fields

§expr: Box<TypedExpr>

Expression to test.

§low: Box<TypedExpr>

Lower bound.

§high: Box<TypedExpr>

Upper bound.

§negated: bool

Whether the expression is negated (NOT BETWEEN).

§

Like

A LIKE pattern match expression.

Fields

§expr: Box<TypedExpr>

Expression to match.

§pattern: Box<TypedExpr>

Pattern to match against.

§escape: Option<Box<TypedExpr>>

Optional escape character.

§negated: bool

Whether the expression is negated (NOT LIKE).

§

InList

An IN list expression.

Fields

§expr: Box<TypedExpr>

Expression to test.

§list: Vec<TypedExpr>

List of values to check against.

§negated: bool

Whether the expression is negated (NOT IN).

§

IsNull

An IS NULL expression.

Fields

§expr: Box<TypedExpr>

Expression to test.

§negated: bool

Whether the expression is negated (IS NOT NULL).

§

VectorLiteral(Vec<f64>)

A vector literal.

Trait Implementations§

Source§

impl Clone for TypedExprKind

Source§

fn clone(&self) -> TypedExprKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TypedExprKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> MaybeSend for T
where T: Send,