pub enum Scalar {
Field(FieldRef),
Literal(Cell),
Param(ParameterName),
Call(ScalarOp, Vec<Scalar>),
Case {
branches: Vec<(Scalar, Scalar)>,
otherwise: Option<Box<Scalar>>,
},
Exists(Box<Rel>),
InQuery {
value: Box<Scalar>,
query: Box<Rel>,
},
ScalarQuery(Box<Rel>),
}Expand description
A scalar expression. Subqueries retain lexical access to their outer scope.
Variants§
Field(FieldRef)
Bound field.
Literal(Cell)
Typed literal.
Param(ParameterName)
Declared parameter.
Call(ScalarOp, Vec<Scalar>)
Portable operator call.
Case
Conditional expression.
Fields
Exists(Box<Rel>)
Existence subquery.
InQuery
Membership subquery.
ScalarQuery(Box<Rel>)
Single-value subquery.
Trait Implementations§
impl Eq for Scalar
impl StructuralPartialEq for Scalar
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnsafeUnpin for Scalar
impl UnwindSafe for Scalar
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