Skip to main content

Expr

Trait Expr 

Source
pub trait Expr: DynExpr {
    // Required method
    fn ty_hint(&self) -> &'static str;
}
Expand description

A DynExpr that also reports a SurrealQL type hint. Auto-implemented for every DynExpr (returning "any"); concrete nodes may override the hint.

Required Methods§

Source

fn ty_hint(&self) -> &'static str

A best-effort SurrealQL type name for this expression.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E: DynExpr> Expr for E