MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / passthrough

Function passthrough

nodedb-array/src/query/elementwise.rs:90–98  ·  view source on GitHub ↗
(l: &CellValue, r: &CellValue)

Source from the content-addressed store, hash-verified

88}
89
90fn passthrough(l: &CellValue, r: &CellValue) -> CellValue {
91 if !l.is_null() {
92 l.clone()
93 } else if !r.is_null() {
94 r.clone()
95 } else {
96 CellValue::Null
97 }
98}
99
100fn to_f64(v: &CellValue) -> Option<f64> {
101 match v {

Callers 1

applyFunction · 0.85

Calls 2

is_nullMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected