pub trait Row {
// Required method
fn get(&self, field: &FieldRef) -> Option<Value>;
// Provided methods
fn try_get(&self, field: &FieldRef) -> Result<Option<Value>, EvalError> { ... }
fn regex_cache(&self) -> Option<&RegexCache> { ... }
fn evaluate_exists(
&self,
_query: &QueryExpr,
_parameters: &[Value],
) -> Result<bool, EvalError> { ... }
}Expand description
Pluggable row-binding lookup. The evaluator stays agnostic of
whether the caller has a slot vector indexed by planner-assigned
position, a flat HashMap<String, Value>, or a graph binding —
every consumer just provides a Row impl that resolves a
FieldRef to a Value.
Required Methods§
Provided Methods§
Sourcefn try_get(&self, field: &FieldRef) -> Result<Option<Value>, EvalError>
fn try_get(&self, field: &FieldRef) -> Result<Option<Value>, EvalError>
Hosts which decode stored values can report operating failures instead of treating a denied read as an unknown or NULL column.
fn regex_cache(&self) -> Option<&RegexCache>
fn evaluate_exists( &self, _query: &QueryExpr, _parameters: &[Value], ) -> Result<bool, EvalError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".