pub struct CastExpr { /* private fields */ }Expand description
CAST expression (CAST(column AS type))
Implementations§
Trait Implementations§
Source§impl Expression for CastExpr
impl Expression for CastExpr
Source§fn evaluate_fast(&self, row: &Row) -> bool
fn evaluate_fast(&self, row: &Row) -> bool
Fast evaluation without detailed error handling Read more
Source§fn with_aliases(
&self,
aliases: &FxHashMap<String, String>,
) -> Box<dyn Expression>
fn with_aliases( &self, aliases: &FxHashMap<String, String>, ) -> Box<dyn Expression>
Create a copy of this expression with column aliases resolved Read more
Source§fn prepare_for_schema(&mut self, schema: &Schema)
fn prepare_for_schema(&mut self, schema: &Schema)
Prepare the expression for a specific schema Read more
Source§fn is_prepared(&self) -> bool
fn is_prepared(&self) -> bool
Check if this expression has been prepared for a schema
Source§fn get_column_name(&self) -> Option<&str>
fn get_column_name(&self) -> Option<&str>
Get the column name this expression operates on (if single column)
Source§fn clone_box(&self) -> Box<dyn Expression>
fn clone_box(&self) -> Box<dyn Expression>
Clone the expression into a boxed trait object
Source§fn can_use_index(&self) -> bool
fn can_use_index(&self) -> bool
Check if this expression can potentially use an index
Source§fn get_comparison_info(&self) -> Option<(&str, Operator, &Value)>
fn get_comparison_info(&self) -> Option<(&str, Operator, &Value)>
Extract equality comparison info for index lookups Read more
Source§fn get_and_operands(&self) -> Option<&[Box<dyn Expression>]>
fn get_and_operands(&self) -> Option<&[Box<dyn Expression>]>
Get child expressions if this is an AND expression Read more
Source§fn get_or_operands(&self) -> Option<&[Box<dyn Expression>]>
fn get_or_operands(&self) -> Option<&[Box<dyn Expression>]>
Get child expressions if this is an OR expression Read more
Source§fn get_like_prefix_info(&self) -> Option<(&str, String, bool)>
fn get_like_prefix_info(&self) -> Option<(&str, String, bool)>
Get LIKE prefix info for index range scanning Read more
Auto Trait Implementations§
impl Freeze for CastExpr
impl RefUnwindSafe for CastExpr
impl Send for CastExpr
impl Sync for CastExpr
impl Unpin for CastExpr
impl UnsafeUnpin for CastExpr
impl UnwindSafe for CastExpr
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> CompactArcDrop for T
impl<T> CompactArcDrop for T
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