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

Function coord_to_bound

nodedb-array/src/query/slice.rs:170–177  ·  view source on GitHub ↗
(c: &CoordValue)

Source from the content-addressed store, hash-verified

168}
169
170fn coord_to_bound(c: &CoordValue) -> DomainBound {
171 match c {
172 CoordValue::Int64(v) => DomainBound::Int64(*v),
173 CoordValue::Float64(v) => DomainBound::Float64(*v),
174 CoordValue::TimestampMs(v) => DomainBound::TimestampMs(*v),
175 CoordValue::String(v) => DomainBound::String(v.clone()),
176 }
177}
178
179#[cfg(test)]
180mod tests {

Callers 1

cell_in_sliceFunction · 0.70

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected