MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / find_operator

Function find_operator

cel/src/common/ast/operators.rs:1–8  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

1pub fn find_operator(input: &str) -> Option<&str> {
2 for (op, operator) in OPERATORS {
3 if op == input {
4 return Some(operator);
5 }
6 }
7 None
8}
9
10pub const CONDITIONAL: &str = "_?_:_";
11pub const LOGICAL_AND: &str = "_&&_";

Callers 2

visit_relationMethod · 0.85
visit_calcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected