MCPcopy Create free account
hub / github.com/AmrDeveloper/GQL / evaluate_cast

Function evaluate_cast

crates/gitql-engine/src/engine_evaluator.rs:590–598  ·  view source on GitHub ↗
(
    env: &mut Environment,
    expr: &CastExpr,
    titles: &[String],
    object: &Vec<Box<dyn Value>>,
)

Source from the content-addressed store, hash-verified

588}
589
590fn evaluate_cast(
591 env: &mut Environment,
592 expr: &CastExpr,
593 titles: &[String],
594 object: &Vec<Box<dyn Value>>,
595) -> Result<Box<dyn Value>, String> {
596 let value = evaluate_expression(env, &expr.value, titles, object)?;
597 value.cast_op(&expr.result_type)
598}
599
600fn evaluate_column(
601 env: &mut Environment,

Callers 1

evaluate_expressionFunction · 0.85

Calls 2

evaluate_expressionFunction · 0.85
cast_opMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…