pub enum Operand<'a> {
Show 15 variants
Null,
LitBool(bool),
LitInt(i128),
LitFloat(f64),
LitStr(&'a str),
LitIdent(&'a str),
LitField(&'a [&'a str]),
LitArray(&'a [Operand<'a>]),
LitTuple(&'a [Operand<'a>]),
Type(Value),
Variable(Value),
Value(&'a Value),
Call(&'static str, &'a [&'a dyn Expression]),
Asterisk,
QuestionMark,
}Variants§
Null
LitBool(bool)
LitInt(i128)
LitFloat(f64)
LitStr(&'a str)
LitIdent(&'a str)
LitField(&'a [&'a str])
LitArray(&'a [Operand<'a>])
LitTuple(&'a [Operand<'a>])
Type(Value)
Variable(Value)
Value(&'a Value)
Call(&'static str, &'a [&'a dyn Expression])
Asterisk
QuestionMark
Trait Implementations§
Source§impl Expression for Operand<'_>
impl Expression for Operand<'_>
Source§fn write_query(
&self,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut DynQuery,
)
fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, )
Serialize the expression into
out using writer.Source§fn accept_visitor(
&self,
matcher: &mut dyn ExpressionVisitor,
writer: &dyn SqlWriter,
context: &mut Context,
out: &mut DynQuery,
) -> bool
fn accept_visitor( &self, matcher: &mut dyn ExpressionVisitor, writer: &dyn SqlWriter, context: &mut Context, out: &mut DynQuery, ) -> bool
Check if the matcher matching this expression
Source§fn as_identifier(&self, context: &mut Context) -> String
fn as_identifier(&self, context: &mut Context) -> String
Converts the given value to a
String representing the expressionSource§impl OpPrecedence for Operand<'_>
impl OpPrecedence for Operand<'_>
Source§fn precedence(&self, _writer: &dyn SqlWriter) -> i32
fn precedence(&self, _writer: &dyn SqlWriter) -> i32
Lower numbers bind weaker, writers parenthesize when child precedence <= operator precedence.
Auto Trait Implementations§
impl<'a> Freeze for Operand<'a>
impl<'a> !RefUnwindSafe for Operand<'a>
impl<'a> Send for Operand<'a>
impl<'a> Sync for Operand<'a>
impl<'a> Unpin for Operand<'a>
impl<'a> UnsafeUnpin for Operand<'a>
impl<'a> !UnwindSafe for Operand<'a>
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