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

Function make_entry

nodedb-spatial/src/rtree/tree.rs:153–158  ·  view source on GitHub ↗
(id: u64, lng: f64, lat: f64)

Source from the content-addressed store, hash-verified

151 use super::*;
152
153 fn make_entry(id: u64, lng: f64, lat: f64) -> RTreeEntry {
154 RTreeEntry {
155 id,
156 bbox: BoundingBox::from_point(lng, lat),
157 }
158 }
159
160 fn make_rect(id: u64, min_lng: f64, min_lat: f64, max_lng: f64, max_lat: f64) -> RTreeEntry {
161 RTreeEntry {

Callers 7

insert_and_search_singleFunction · 0.70
insert_many_and_searchFunction · 0.70
delete_entryFunction · 0.70
nearest_neighborFunction · 0.70
stress_insert_deleteFunction · 0.70
triggers_node_splitFunction · 0.70
entries_enumerationFunction · 0.70

Calls

no outgoing calls

Tested by 7

insert_and_search_singleFunction · 0.56
insert_many_and_searchFunction · 0.56
delete_entryFunction · 0.56
nearest_neighborFunction · 0.56
stress_insert_deleteFunction · 0.56
triggers_node_splitFunction · 0.56
entries_enumerationFunction · 0.56