pub enum Term {
Constant(Constant),
Literal(Literal),
FunctionCall(FunctionCall),
ArithmeticOp {
lhs: Option<Box<Term>>,
op: ArithmeticOp,
rhs: Box<Term>,
},
TypeHint {
hint: CqlType,
ident: Name,
},
BindMarker(BindMarker),
}
Variants§
Constant(Constant)
Literal(Literal)
FunctionCall(FunctionCall)
ArithmeticOp
TypeHint
BindMarker(BindMarker)
Implementations§
Source§impl Term
impl Term
pub fn constant<T: Into<Constant>>(value: T) -> Self
pub fn literal<T: Into<Literal>>(value: T) -> Self
pub fn function_call<T: Into<FunctionCall>>(value: T) -> Self
pub fn negative<T: Into<Term>>(t: T) -> Self
pub fn arithmetic_op<LT: Into<Term>, RT: Into<Term>>( lhs: LT, op: ArithmeticOp, rhs: RT, ) -> Self
pub fn type_hint<T: Into<CqlType>, N: Into<Name>>(hint: T, ident: N) -> Self
pub fn bind_marker<T: Into<BindMarker>>(marker: T) -> Self
Trait Implementations§
Source§impl From<BindMarker> for Term
impl From<BindMarker> for Term
Source§fn from(original: BindMarker) -> Term
fn from(original: BindMarker) -> Term
Converts to this type from the input type.
Source§impl From<FunctionCall> for Term
impl From<FunctionCall> for Term
Source§fn from(original: FunctionCall) -> Term
fn from(original: FunctionCall) -> Term
Converts to this type from the input type.
Source§impl Ord for Term
impl Ord for Term
Source§impl PartialOrd for Term
impl PartialOrd for Term
Source§impl ToTokens for Term
impl ToTokens for Term
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations§
impl Freeze for Term
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
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