Trait dbgen::eval::AsValue

source ·
pub trait AsValue {
    fn as_value(&self) -> Option<&Value>;
    fn to_compiled(&self) -> Compiled;
}
Expand description

Types which can be treated like a Value.

Required Methods

Borrows a Value out of this instance. Returns None if this instance does not contain any Values.

Converts this instance into an owned compiled expression.

Implementors