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>
impl<'b, T, F, E> BindPosition<T, F, E>
pub fn new(output_columns: F, fn_eq: E) -> BindPosition<T, F, E>
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>
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>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>
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>
fn visit(&mut self, expr: &'a mut ScalarExpression) -> Result<(), DatabaseError>
fn visit_alias( &mut self, expr: &'a mut ScalarExpression, ty: &'a mut AliasType, ) -> Result<(), DatabaseError>
fn visit_constant( &mut self, _value: &'a mut DataValue, ) -> Result<(), DatabaseError>
fn visit_column_ref( &mut self, _column: &'a mut ColumnRef, ) -> Result<(), DatabaseError>
fn visit_type_cast( &mut self, expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
fn visit_is_null( &mut self, _negated: bool, expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>
fn visit_unary( &mut self, _op: &'a mut UnaryOperator, expr: &'a mut ScalarExpression, _evaluator: &'a mut Option<UnaryEvaluatorBox>, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
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>
fn visit_agg( &mut self, _distinct: bool, _kind: &'a mut AggKind, args: &'a mut [ScalarExpression], _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
fn visit_in( &mut self, _negated: bool, expr: &'a mut ScalarExpression, args: &'a mut [ScalarExpression], ) -> Result<(), DatabaseError>
fn visit_between( &mut self, _negated: bool, expr: &'a mut ScalarExpression, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>
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>
fn visit_position( &mut self, expr: &'a mut ScalarExpression, in_expr: &'a mut ScalarExpression, ) -> Result<(), DatabaseError>
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>
fn visit_empty(&mut self) -> Result<(), DatabaseError>
fn visit_reference( &mut self, expr: &'a mut ScalarExpression, _pos: usize, ) -> Result<(), DatabaseError>
fn visit_tuple( &mut self, exprs: &'a mut [ScalarExpression], ) -> Result<(), DatabaseError>
fn visit_scala_function( &mut self, scalar_function: &'a mut ScalarFunction, ) -> Result<(), DatabaseError>
fn visit_table_function( &mut self, table_function: &'a mut TableFunction, ) -> Result<(), DatabaseError>
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>
fn visit_if_null( &mut self, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
fn visit_null_if( &mut self, left_expr: &'a mut ScalarExpression, right_expr: &'a mut ScalarExpression, _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
fn visit_coalesce( &mut self, exprs: &'a mut [ScalarExpression], _ty: &'a mut LogicalType, ) -> Result<(), DatabaseError>
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>
impl<T, F, E> RefUnwindSafe for BindPosition<T, F, E>where
F: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, F, E> Send for BindPosition<T, F, E>
impl<T, F, E> Sync for BindPosition<T, F, E>
impl<T, F, E> Unpin for BindPosition<T, F, E>
impl<T, F, E> UnwindSafe for BindPosition<T, F, E>where
F: UnwindSafe,
E: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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