MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / position

Method position

atomic-core/src/crdt/apply/order.rs:434–436  ·  view source on GitHub ↗
(&self, id: &Id)

Source from the content-addressed store, hash-verified

432 /// Finds the index of an element by ID.
433 #[inline]
434 pub fn position(&self, id: &Id) -> Option<usize> {
435 self.elements.iter().position(|e| e == id)
436 }
437
438 /// Removes an element by ID.
439 ///

Callers 2

resolve_positionMethod · 0.45
removeMethod · 0.45

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected