BindPosition

Struct BindPosition 

Source
pub struct BindPosition<T: Clone, F: Clone + Fn() -> T, E: Fn(&ColumnSummary, &ColumnSummary) -> bool> { /* private fields */ }

Implementations§

Source§

impl<'b, T, F, E> BindPosition<T, F, E>
where T: Iterator<Item = Cow<'b, ColumnRef>> + Clone, F: Clone + Fn() -> T, E: Clone + Fn(&ColumnSummary, &ColumnSummary) -> bool,

Source

pub fn new(output_columns: F, fn_eq: E) -> BindPosition<T, F, E>

Source

pub fn bind_exprs( exprs: IterMut<'_, ScalarExpression>, fn_schema: F, fn_eq: E, ) -> Result<(), DatabaseError>

Trait Implementations§

Source§

impl<T: Clone + Clone, F: Clone + Clone + Fn() -> T, E: Clone + Fn(&ColumnSummary, &ColumnSummary) -> bool> Clone for BindPosition<T, F, E>

Source§

fn clone(&self) -> BindPosition<T, F, E>

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<'a, 'b, T: Iterator<Item = Cow<'b, ColumnRef>> + Clone, F: Clone + Fn() -> T, E: Clone + Fn(&ColumnSummary, &ColumnSummary) -> bool> VisitorMut<'a> for BindPosition<T, F, E>

Source§

fn visit(&mut self, expr: &'a mut ScalarExpression) -> Result<(), DatabaseError>

Source§

fn visit_alias( &mut self, expr: &'a mut ScalarExpression, ty: &'a mut AliasType, ) -> Result<(), DatabaseError>

Source§

fn visit_constant( &mut self, _value: &'a mut DataValue, ) -> Result<(), DatabaseError>

Source§

fn visit_column_ref( &mut self, _column: &'a mut ColumnRef, ) -> Result<(), DatabaseError>

Source§

fn visit_type_cast( &mut self, expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_is_null( &mut self, _negated: bool, expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>

Source§

fn visit_unary( &mut self, _op: &'a mut UnaryOperator, expr: &'a mut ScalarExpression, _evaluator: &'a mut Option<UnaryEvaluatorBox>, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_binary( &mut self, _op: &'a mut BinaryOperator, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _evaluator: &'a mut Option<BinaryEvaluatorBox>, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_agg( &mut self, _distinct: bool, _kind: &'a mut AggKind, args: &'a mut [ScalarExpression], _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_in( &mut self, _negated: bool, expr: &'a mut ScalarExpression, args: &'a mut [ScalarExpression], ) -> Result<(), DatabaseError>

Source§

fn visit_between( &mut self, _negated: bool, expr: &'a mut ScalarExpression, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>

Source§

fn visit_substring( &mut self, expr: &'a mut ScalarExpression, for_expr: &'a mut Option<Box<ScalarExpression>>, from_expr: &'a mut Option<Box<ScalarExpression>>, ) -> Result<(), DatabaseError>

Source§

fn visit_position( &mut self, expr: &'a mut ScalarExpression, in_expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>

Source§

fn visit_trim( &mut self, expr: &'a mut ScalarExpression, trim_what_expr: &'a mut Option<Box<ScalarExpression>>, _trim_where: &'a mut Option<TrimWhereField>, ) -> Result<(), DatabaseError>

Source§

fn visit_empty(&mut self) -> Result<(), DatabaseError>

Source§

fn visit_reference( &mut self, expr: &'a mut ScalarExpression, _pos: usize, ) -> Result<(), DatabaseError>

Source§

fn visit_tuple( &mut self, exprs: &'a mut [ScalarExpression], ) -> Result<(), DatabaseError>

Source§

fn visit_scala_function( &mut self, scalar_function: &'a mut ScalarFunction, ) -> Result<(), DatabaseError>

Source§

fn visit_table_function( &mut self, table_function: &'a mut TableFunction, ) -> Result<(), DatabaseError>

Source§

fn visit_if( &mut self, condition: &'a mut ScalarExpression, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_if_null( &mut self, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_null_if( &mut self, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_coalesce( &mut self, exprs: &'a mut [ScalarExpression], _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Source§

fn visit_case_when( &mut self, operand_expr: &'a mut Option<Box<ScalarExpression>>, expr_pairs: &'a mut [(ScalarExpression, ScalarExpression)], else_expr: &'a mut Option<Box<ScalarExpression>>, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>

Auto Trait Implementations§

§

impl<T, F, E> Freeze for BindPosition<T, F, E>
where F: Freeze, E: Freeze,

§

impl<T, F, E> RefUnwindSafe for BindPosition<T, F, E>

§

impl<T, F, E> Send for BindPosition<T, F, E>
where F: Send, E: Send,

§

impl<T, F, E> Sync for BindPosition<T, F, E>
where F: Sync, E: Sync,

§

impl<T, F, E> Unpin for BindPosition<T, F, E>
where F: Unpin, E: Unpin,

§

impl<T, F, E> UnwindSafe for BindPosition<T, F, E>
where F: UnwindSafe, E: UnwindSafe,

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, 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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