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

Method without

atomic-core/src/pristine/traits/view.rs:69–77  ·  view source on GitHub ↗

Return membership with one directly named change removed.

(&self, change_id: impl Borrow<NodeId>)

Source from the content-addressed store, hash-verified

67
68 /// Return membership with one directly named change removed.
69 pub fn without(&self, change_id: impl Borrow<NodeId>) -> Self {
70 let change_id = change_id.borrow();
71 Self::from_ordered(
72 self.ordered
73 .iter()
74 .copied()
75 .filter(|candidate| candidate != change_id),
76 )
77 }
78}
79
80#[derive(Debug, PartialEq, Eq)]

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected