pub trait DynExpr:
Debug
+ Send
+ Sync {
// Required method
fn render_dyn(&self, buf: &mut String);
// Provided method
fn render_dyn_params(
&self,
buf: &mut String,
_params: &mut BTreeMap<String, Value>,
) { ... }
}Expand description
A type-erased expression that can render itself into a SurrealQL buffer. Implemented by every expression node; the common currency of the builder.
Required Methods§
Sourcefn render_dyn(&self, buf: &mut String)
fn render_dyn(&self, buf: &mut String)
Append this expression’s SurrealQL to buf with all values inlined.
Provided Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Implementors§
impl DynExpr for AndExpr
impl DynExpr for Closure
impl DynExpr for ContainsExpr
impl DynExpr for EqExpr
impl DynExpr for Func
impl DynExpr for Grouped
impl DynExpr for GtExpr
impl DynExpr for GteExpr
impl DynExpr for Ident
impl DynExpr for IfExpr
impl DynExpr for InExpr
impl DynExpr for KnnExpr
impl DynExpr for LtExpr
impl DynExpr for LteExpr
impl DynExpr for MatchesExpr
impl DynExpr for NeExpr
impl DynExpr for NoneLit
impl DynExpr for NotExpr
impl DynExpr for NotInExpr
impl DynExpr for OrExpr
impl DynExpr for Path
impl DynExpr for Raw
impl DynExpr for RecordLink
impl<T: SurrealRecord, V: SurrealQL> DynExpr for Column<T, V>
impl<T: SurrealRecord> DynExpr for ColumnSet<T>
impl<T: SurrealRecord> DynExpr for Select<T>
A Select is usable as an expression — rendered parenthesized — so it can be
embedded as a subquery: a scalar/IN operand in a WHERE, a projection, or a
SET/FROM value. Params from the subquery merge into the parent’s map.