Enum scylladb_parse::Term 
source · [−]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
sourceimpl 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
sourceimpl<'a> CustomToTokens<'a> for Term
 
impl<'a> CustomToTokens<'a> for Term
fn to_tokens(&'a self, tokens: &mut TokenStream)
sourceimpl From<BindMarker> for Term
 
impl From<BindMarker> for Term
sourcefn from(original: BindMarker) -> Term
 
fn from(original: BindMarker) -> Term
Converts to this type from the input type.
sourceimpl From<FunctionCall> for Term
 
impl From<FunctionCall> for Term
sourcefn from(original: FunctionCall) -> Term
 
fn from(original: FunctionCall) -> Term
Converts to this type from the input type.
sourceimpl Ord for Term
 
impl Ord for Term
sourceimpl PartialOrd<Term> for Term
 
impl PartialOrd<Term> for Term
sourcefn partial_cmp(&self, other: &Term) -> Option<Ordering>
 
fn partial_cmp(&self, other: &Term) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
 
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
sourceimpl ToTokens for Term
 
impl ToTokens for Term
sourcefn to_tokens(&self, tokens: &mut TokenStream)
 
fn to_tokens(&self, tokens: &mut TokenStream)
Write self to the given TokenStream. Read more
sourcefn to_token_stream(&self) -> TokenStream
 
fn to_token_stream(&self) -> TokenStream
Convert self directly into a TokenStream object. Read more
sourcefn into_token_stream(self) -> TokenStream
 
fn into_token_stream(self) -> TokenStream
Convert self directly into a TokenStream object. Read more
impl Eq for Term
impl StructuralEq for Term
impl StructuralPartialEq for Term
Auto Trait Implementations
impl RefUnwindSafe for Term
impl Send for Term
impl Sync for Term
impl Unpin for Term
impl UnwindSafe for Term
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more