MCPcopy Create free account
hub / github.com/ecto/muni / remove

Method remove

depot/types/src/map.rs:127–136  ·  view source on GitHub ↗

Remove a map entry by ID.

(&mut self, id: Uuid)

Source from the content-addressed store, hash-verified

125
126 /// Remove a map entry by ID.
127 pub fn remove(&mut self, id: Uuid) -> bool {
128 let len_before = self.maps.len();
129 self.maps.retain(|m| m.id != id);
130 if self.maps.len() != len_before {
131 self.updated_at = Utc::now();
132 true
133 } else {
134 false
135 }
136 }
137}
138
139/// Entry in the map index (summary info).

Callers 10

__wbg_get_importsFunction · 0.80
MapFullscreenControlFunction · 0.80
useThemeFunction · 0.80
handle_rover_wsFunction · 0.80
alert_evaluatorFunction · 0.80
start_cameraFunction · 0.80
reader_taskMethod · 0.80
push_logMethod · 0.80
gc_staleMethod · 0.80
processMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected