pub struct BinaryExpression<T> { /* private fields */ }
Expand description
Binary predicate, for example, a > 10
.
Implementations§
Source§impl<T> BinaryExpression<T>
impl<T> BinaryExpression<T>
Sourcepub fn new(op: PredicateOperator, term: T, literal: Datum) -> Self
pub fn new(op: PredicateOperator, term: T, literal: Datum) -> Self
Creates a binary expression with the given operator, term and literal.
§Example
use iceberg::expr::{BinaryExpression, PredicateOperator, Reference};
use iceberg::spec::Datum;
BinaryExpression::new(
PredicateOperator::LessThanOrEq,
Reference::new("a"),
Datum::int(10),
);
Sourcepub fn op(&self) -> PredicateOperator
pub fn op(&self) -> PredicateOperator
Return the operator used by this predicate expression.
Trait Implementations§
Source§impl<T: Bind> Bind for BinaryExpression<T>
impl<T: Bind> Bind for BinaryExpression<T>
Source§impl<T: Clone> Clone for BinaryExpression<T>
impl<T: Clone> Clone for BinaryExpression<T>
Source§fn clone(&self) -> BinaryExpression<T>
fn clone(&self) -> BinaryExpression<T>
Returns a copy 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<T: Debug> Debug for BinaryExpression<T>
impl<T: Debug> Debug for BinaryExpression<T>
Source§impl<'de, T> Deserialize<'de> for BinaryExpression<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for BinaryExpression<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: Display> Display for BinaryExpression<T>
impl<T: Display> Display for BinaryExpression<T>
Source§impl<T: PartialEq> PartialEq for BinaryExpression<T>
impl<T: PartialEq> PartialEq for BinaryExpression<T>
Source§impl<T> Serialize for BinaryExpression<T>where
T: Serialize,
impl<T> Serialize for BinaryExpression<T>where
T: Serialize,
impl<T> StructuralPartialEq for BinaryExpression<T>
Auto Trait Implementations§
impl<T> Freeze for BinaryExpression<T>where
T: Freeze,
impl<T> RefUnwindSafe for BinaryExpression<T>where
T: RefUnwindSafe,
impl<T> Send for BinaryExpression<T>where
T: Send,
impl<T> Sync for BinaryExpression<T>where
T: Sync,
impl<T> Unpin for BinaryExpression<T>where
T: Unpin,
impl<T> UnwindSafe for BinaryExpression<T>where
T: 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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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