Expression

Trait Expression 

Source
pub trait Expression:
    OpPrecedence
    + Send
    + Sync
    + Debug {
    // Required method
    fn write_query(
        &self,
        writer: &dyn SqlWriter,
        context: &mut Context,
        buff: &mut String,
    );

    // Provided method
    fn is_ordered(&self) -> bool { ... }
}

Required Methods§

Source

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Provided Methods§

Source

fn is_ordered(&self) -> bool

Trait Implementations§

Source§

impl Expression for &dyn Expression

Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Source§

fn is_ordered(&self) -> bool

Source§

impl<'a, T: Expression> From<&'a T> for &'a dyn Expression

Source§

fn from(value: &'a T) -> Self

Converts to this type from the input type.
Source§

impl OpPrecedence for &dyn Expression

Source§

fn precedence(&self, writer: &dyn SqlWriter) -> i32

Implementations on Foreign Types§

Source§

impl Expression for bool

Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Source§

impl Expression for ()

Source§

fn write_query( &self, _writer: &dyn SqlWriter, _context: &mut Context, _buff: &mut String, )

Source§

impl<T: Expression> Expression for &T

Source§

fn write_query( &self, writer: &dyn SqlWriter, context: &mut Context, buff: &mut String, )

Source§

fn is_ordered(&self) -> bool

Implementors§