Expression

Trait Expression 

Source
pub trait Expression:
    Send
    + Sync
    + Debug {
    // Required method
    fn expression_type(&self) -> ExpressionType<'_>;

    // Provided methods
    fn params(&self) -> Option<Vec<&DatabaseValue>> { ... }
    fn values(&self) -> Option<Vec<&DatabaseValue>> { ... }
    fn is_null(&self) -> bool { ... }
}

Required Methods§

Provided Methods§

Trait Implementations§

Source§

impl From<Identifier> for Box<dyn Expression>

Source§

fn from(val: Identifier) -> Self

Converts to this type from the input type.
Source§

impl From<Literal> for Box<dyn Expression>

Source§

fn from(val: Literal) -> Self

Converts to this type from the input type.
Source§

impl<T: Into<DatabaseValue>> From<T> for Box<dyn Expression>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§