pub struct ProjectedPredicate { /* private fields */ }Expand description
A predicate whose column lookups are resolved once to projection slots.
Unsupported expressions return None and continue through the canonical
map-backed evaluator.
Implementations§
Source§impl ProjectedPredicate
impl ProjectedPredicate
pub fn compile( expression: &ScalarExpr, fields: &[String], params: &[SQLParam], ) -> Result<Option<Self>, SQLError>
Sourcepub fn compile_with_schema(
expression: &ScalarExpr,
schema: &RowSchema,
params: &[SQLParam],
) -> Result<Option<Self>, SQLError>
pub fn compile_with_schema( expression: &ScalarExpr, schema: &RowSchema, params: &[SQLParam], ) -> Result<Option<Self>, SQLError>
Compile against structured SQL identities instead of interpreting punctuation in public labels as qualification metadata.
pub fn keep(&self, values: &[&Value]) -> Result<bool, SQLError>
Auto Trait Implementations§
impl Freeze for ProjectedPredicate
impl RefUnwindSafe for ProjectedPredicate
impl Send for ProjectedPredicate
impl Sync for ProjectedPredicate
impl Unpin for ProjectedPredicate
impl UnsafeUnpin for ProjectedPredicate
impl UnwindSafe for ProjectedPredicate
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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